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

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

Issue 8230037: Send PING to check the status of the SPDY connection. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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_layer.cc ('k') | net/spdy/spdy_session.h » ('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) 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
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
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
OLDNEW
« no previous file with comments | « net/http/http_network_layer.cc ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698