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 |
| 1206 // Add one more error case for spdy_session's ping message failing. |
1205 } | 1207 } |
1206 return error; | 1208 return error; |
1207 } | 1209 } |
1208 | 1210 |
1209 void HttpNetworkTransaction::ResetStateForRestart() { | 1211 void HttpNetworkTransaction::ResetStateForRestart() { |
1210 ResetStateForAuthRestart(); | 1212 ResetStateForAuthRestart(); |
1211 stream_.reset(); | 1213 stream_.reset(); |
1212 } | 1214 } |
1213 | 1215 |
1214 void HttpNetworkTransaction::ResetStateForAuthRestart() { | 1216 void HttpNetworkTransaction::ResetStateForAuthRestart() { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, | 1340 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, |
1339 state); | 1341 state); |
1340 break; | 1342 break; |
1341 } | 1343 } |
1342 return description; | 1344 return description; |
1343 } | 1345 } |
1344 | 1346 |
1345 #undef STATE_CASE | 1347 #undef STATE_CASE |
1346 | 1348 |
1347 } // namespace net | 1349 } // namespace net |
OLD | NEW |