Index: net/http/http_stream_factory_impl_job.cc |
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc |
index 179d8c458324ae8975216e22cbbf746885faff40..5ee8c3be0916349996c6171c7dfc14f38a6f8fc8 100644 |
--- a/net/http/http_stream_factory_impl_job.cc |
+++ b/net/http/http_stream_factory_impl_job.cc |
@@ -704,8 +704,17 @@ int HttpStreamFactoryImpl::Job::DoInitConnection() { |
} |
next_state_ = STATE_INIT_CONNECTION_COMPLETE; |
const ProxyServer& proxy_server = proxy_info_.proxy_server(); |
- return quic_request_.Request(HostPortProxyPair(origin_, proxy_server), |
- net_log_, io_callback_); |
+ int rv = quic_request_.Request(HostPortProxyPair(origin_, proxy_server), |
+ net_log_, io_callback_); |
+ if (rv != OK) { |
+ // OK, there's no available QUIC session. Let |waiting_job_| resume |
+ // if it's paused. |
+ if (waiting_job_) { |
+ waiting_job_->Resume(this); |
+ waiting_job_ = NULL; |
+ } |
+ } |
+ return rv; |
} |
// Check first if we have a spdy session for this group. If so, then go |