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

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: Merge Created 6 years, 7 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
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 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 // ERR_EMPTY_RESPONSE. This may still be close/reuse race if the socket was 1437 // ERR_EMPTY_RESPONSE. This may still be close/reuse race if the socket was
1438 // preconnected but failed to be used before the server timed it out. 1438 // preconnected but failed to be used before the server timed it out.
1439 case ERR_EMPTY_RESPONSE: 1439 case ERR_EMPTY_RESPONSE:
1440 if (ShouldResendRequest()) { 1440 if (ShouldResendRequest()) {
1441 net_log_.AddEventWithNetErrorCode( 1441 net_log_.AddEventWithNetErrorCode(
1442 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, error); 1442 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, error);
1443 ResetConnectionAndRequestForResend(); 1443 ResetConnectionAndRequestForResend();
1444 error = OK; 1444 error = OK;
1445 } 1445 }
1446 break; 1446 break;
1447 case ERR_PIPELINE_EVICTION:
1448 if (!session_->force_http_pipelining()) {
1449 net_log_.AddEventWithNetErrorCode(
1450 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, error);
1451 ResetConnectionAndRequestForResend();
1452 error = OK;
1453 }
1454 break;
1455 case ERR_SPDY_PING_FAILED: 1447 case ERR_SPDY_PING_FAILED:
1456 case ERR_SPDY_SERVER_REFUSED_STREAM: 1448 case ERR_SPDY_SERVER_REFUSED_STREAM:
1457 case ERR_QUIC_HANDSHAKE_FAILED: 1449 case ERR_QUIC_HANDSHAKE_FAILED:
1458 net_log_.AddEventWithNetErrorCode( 1450 net_log_.AddEventWithNetErrorCode(
1459 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, error); 1451 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, error);
1460 ResetConnectionAndRequestForResend(); 1452 ResetConnectionAndRequestForResend();
1461 error = OK; 1453 error = OK;
1462 break; 1454 break;
1463 } 1455 }
1464 return error; 1456 return error;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, 1603 description = base::StringPrintf("Unknown state 0x%08X (%u)", state,
1612 state); 1604 state);
1613 break; 1605 break;
1614 } 1606 }
1615 return description; 1607 return description;
1616 } 1608 }
1617 1609
1618 #undef STATE_CASE 1610 #undef STATE_CASE
1619 1611
1620 } // namespace net 1612 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698