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

Unified Diff: net/http/http_proxy_client_socket_wrapper.cc

Issue 2756503002: Allow SpdySessionPool to find/create SpdySession with IP pooling disabled. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_proxy_client_socket_wrapper.cc
diff --git a/net/http/http_proxy_client_socket_wrapper.cc b/net/http/http_proxy_client_socket_wrapper.cc
index f5e258e86cd8ed5821476871708a9c3450359aad..b209a5af46710d743f896bf013eb89e474ea56ae 100644
--- a/net/http/http_proxy_client_socket_wrapper.cc
+++ b/net/http/http_proxy_client_socket_wrapper.cc
@@ -424,7 +424,9 @@ int HttpProxyClientSocketWrapper::DoSSLConnect() {
if (tunnel_) {
SpdySessionKey key(GetDestination().host_port_pair(), ProxyServer::Direct(),
PRIVACY_MODE_DISABLED);
- if (spdy_session_pool_->FindAvailableSession(key, GURL(), net_log_)) {
+ if (spdy_session_pool_->FindAvailableSession(
+ key, GURL(),
+ /* enable_ip_based_pooling = */ true, net_log_)) {
using_spdy_ = true;
next_state_ = STATE_SPDY_PROXY_CREATE_STREAM;
return OK;
@@ -522,7 +524,9 @@ int HttpProxyClientSocketWrapper::DoSpdyProxyCreateStream() {
SpdySessionKey key(GetDestination().host_port_pair(), ProxyServer::Direct(),
PRIVACY_MODE_DISABLED);
base::WeakPtr<SpdySession> spdy_session =
- spdy_session_pool_->FindAvailableSession(key, GURL(), net_log_);
+ spdy_session_pool_->FindAvailableSession(
+ key, GURL(),
+ /* enable_ip_based_pooling = */ true, net_log_);
// It's possible that a session to the proxy has recently been created
if (spdy_session) {
if (transport_socket_handle_.get()) {
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698