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

Unified Diff: net/http/http_stream_factory_impl_job.cc

Issue 344603004: Avoid setting a duplicate SpdySessionKey on a Request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
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 fbbe969c928c342b3c324b774cedff932460a3d1..79a95361d43f001ea33018d61eb1cb3f104e4c09 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -790,7 +790,8 @@ int HttpStreamFactoryImpl::Job::DoInitConnection() {
next_state_ = STATE_CREATE_STREAM;
existing_spdy_session_ = spdy_session;
return OK;
- } else if (request_ && (using_ssl_ || ShouldForceSpdyWithoutSSL())) {
+ } else if (request_ && !request_->HasSpdySessionKey() &&
+ (using_ssl_ || ShouldForceSpdyWithoutSSL())) {
// Update the spdy session key for the request that launched this job.
request_->SetSpdySessionKey(spdy_session_key);
}
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_request.h » ('j') | net/http/http_stream_factory_impl_request.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698