| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |