OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 // portion of our request) only to find a connection error when we try to | 1195 // portion of our request) only to find a connection error when we try to |
1196 // read from (or finish writing to) the socket. | 1196 // read from (or finish writing to) the socket. |
1197 case ERR_CONNECTION_RESET: | 1197 case ERR_CONNECTION_RESET: |
1198 case ERR_CONNECTION_CLOSED: | 1198 case ERR_CONNECTION_CLOSED: |
1199 case ERR_CONNECTION_ABORTED: | 1199 case ERR_CONNECTION_ABORTED: |
1200 if (ShouldResendRequest(error)) { | 1200 if (ShouldResendRequest(error)) { |
1201 ResetConnectionAndRequestForResend(); | 1201 ResetConnectionAndRequestForResend(); |
1202 error = OK; | 1202 error = OK; |
1203 } | 1203 } |
1204 break; | 1204 break; |
| 1205 case ERR_SPDY_PING_FAILED: |
1205 case ERR_SPDY_SERVER_REFUSED_STREAM: | 1206 case ERR_SPDY_SERVER_REFUSED_STREAM: |
1206 ResetConnectionAndRequestForResend(); | 1207 ResetConnectionAndRequestForResend(); |
1207 error = OK; | 1208 error = OK; |
1208 break; | 1209 break; |
1209 } | 1210 } |
1210 return error; | 1211 return error; |
1211 } | 1212 } |
1212 | 1213 |
1213 void HttpNetworkTransaction::ResetStateForRestart() { | 1214 void HttpNetworkTransaction::ResetStateForRestart() { |
1214 ResetStateForAuthRestart(); | 1215 ResetStateForAuthRestart(); |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1343 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
1343 state); | 1344 state); |
1344 break; | 1345 break; |
1345 } | 1346 } |
1346 return description; | 1347 return description; |
1347 } | 1348 } |
1348 | 1349 |
1349 #undef STATE_CASE | 1350 #undef STATE_CASE |
1350 | 1351 |
1351 } // namespace net | 1352 } // namespace net |
OLD | NEW |