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

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: 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 46bc3f47c1bb8285f63d1f592628e16e7e89ca82..e105ab5bfd5e6df36e6f5a9084f2da6cd49db210 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