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

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

Issue 9433015: Add a force pipelining option to load flags. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use flag in session params Created 8 years, 9 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
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 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 case ERR_SOCKET_NOT_CONNECTED: 1202 case ERR_SOCKET_NOT_CONNECTED:
1203 if (ShouldResendRequest(error)) { 1203 if (ShouldResendRequest(error)) {
1204 net_log_.AddEvent( 1204 net_log_.AddEvent(
1205 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, 1205 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR,
1206 make_scoped_refptr(new NetLogIntegerParameter("net_error", error))); 1206 make_scoped_refptr(new NetLogIntegerParameter("net_error", error)));
1207 ResetConnectionAndRequestForResend(); 1207 ResetConnectionAndRequestForResend();
1208 error = OK; 1208 error = OK;
1209 } 1209 }
1210 break; 1210 break;
1211 case ERR_PIPELINE_EVICTION: 1211 case ERR_PIPELINE_EVICTION:
1212 if (!session_->force_http_pipelining()) {
1213 net_log_.AddEvent(
1214 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR,
1215 make_scoped_refptr(new NetLogIntegerParameter("net_error", error)));
1216 ResetConnectionAndRequestForResend();
1217 error = OK;
1218 }
1219 break;
1212 case ERR_SPDY_PING_FAILED: 1220 case ERR_SPDY_PING_FAILED:
1213 case ERR_SPDY_SERVER_REFUSED_STREAM: 1221 case ERR_SPDY_SERVER_REFUSED_STREAM:
1214 net_log_.AddEvent( 1222 net_log_.AddEvent(
1215 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR, 1223 NetLog::TYPE_HTTP_TRANSACTION_RESTART_AFTER_ERROR,
1216 make_scoped_refptr(new NetLogIntegerParameter("net_error", error))); 1224 make_scoped_refptr(new NetLogIntegerParameter("net_error", error)));
1217 ResetConnectionAndRequestForResend(); 1225 ResetConnectionAndRequestForResend();
1218 error = OK; 1226 error = OK;
1219 break; 1227 break;
1220 } 1228 }
1221 return error; 1229 return error;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, 1363 description = base::StringPrintf("Unknown state 0x%08X (%u)", state,
1356 state); 1364 state);
1357 break; 1365 break;
1358 } 1366 }
1359 return description; 1367 return description;
1360 } 1368 }
1361 1369
1362 #undef STATE_CASE 1370 #undef STATE_CASE
1363 1371
1364 } // namespace net 1372 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698