Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: net/http/http_network_transaction.cc

Issue 275953002: Remove HTTP pipelining support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix line endings Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 // ERR_EMPTY_RESPONSE. This may still be close/reuse race if the socket was 1433 // ERR_EMPTY_RESPONSE. This may still be close/reuse race if the socket was
1434 // preconnected but failed to be used before the server timed it out. 1434 // preconnected but failed to be used before the server timed it out.
1435 case ERR_EMPTY_RESPONSE: 1435 case ERR_EMPTY_RESPONSE:
1436 if (ShouldResendRequest()) { 1436 if (ShouldResendRequest()) {
1437 net_log_.AddEventWithNetErrorCode( 1437 net_log_.AddEventWithNetErrorCode(
1438 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, error); 1438 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, error);
1439 ResetConnectionAndRequestForResend(); 1439 ResetConnectionAndRequestForResend();
1440 error = OK; 1440 error = OK;
1441 } 1441 }
1442 break; 1442 break;
1443 case ERR_PIPELINE_EVICTION:
1444 if (!session_->force_http_pipelining()) {
1445 net_log_.AddEventWithNetErrorCode(
1446 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, error);
1447 ResetConnectionAndRequestForResend();
1448 error = OK;
1449 }
1450 break;
1451 case ERR_SPDY_PING_FAILED: 1443 case ERR_SPDY_PING_FAILED:
1452 case ERR_SPDY_SERVER_REFUSED_STREAM: 1444 case ERR_SPDY_SERVER_REFUSED_STREAM:
1453 case ERR_QUIC_HANDSHAKE_FAILED: 1445 case ERR_QUIC_HANDSHAKE_FAILED:
1454 net_log_.AddEventWithNetErrorCode( 1446 net_log_.AddEventWithNetErrorCode(
1455 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, error); 1447 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, error);
1456 ResetConnectionAndRequestForResend(); 1448 ResetConnectionAndRequestForResend();
1457 error = OK; 1449 error = OK;
1458 break; 1450 break;
1459 } 1451 }
1460 return error; 1452 return error;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, 1599 description = base::StringPrintf("Unknown state 0x%08X (%u)", state,
1608 state); 1600 state);
1609 break; 1601 break;
1610 } 1602 }
1611 return description; 1603 return description;
1612 } 1604 }
1613 1605
1614 #undef STATE_CASE 1606 #undef STATE_CASE
1615 1607
1616 } // namespace net 1608 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698