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

Unified Diff: net/http/http_stream_factory_impl_job.cc

Issue 8586015: Slow start pipelining. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitelist some socket errors Created 9 years, 1 month 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
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 a6ca05e62611b779a6858f275ebc3f138701819b..e1bffb374b423d919202bbf93a6b15709acb8cb4 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -1137,7 +1137,7 @@ bool HttpStreamFactoryImpl::Job::IsOrphaned() const {
return !IsPreconnecting() && !request_;
}
-bool HttpStreamFactoryImpl::Job::IsRequestEligibleForPipelining() const {
+bool HttpStreamFactoryImpl::Job::IsRequestEligibleForPipelining() {
if (!HttpStreamFactory::http_pipelining_enabled()) {
return false;
}
@@ -1147,7 +1147,11 @@ bool HttpStreamFactoryImpl::Job::IsRequestEligibleForPipelining() const {
if (using_ssl_) {
return false;
}
- return request_info_.method == "GET" || request_info_.method == "HEAD";
+ if (request_info_.method != "GET" && request_info_.method != "HEAD") {
+ return false;
+ }
+ return stream_factory_->http_pipelined_host_pool_.IsHostEligibleForPipelining(
+ origin_);
}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698