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

Unified Diff: net/http/http_stream_parser.cc

Issue 1494813002: Fix HttpStreamParser::CanReuseConnection(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes Created 5 years 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_parser.cc
diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc
index 9ddae4853dacb370c5072a34ddcdea90f8a52404..4e4b6b6523feaed4e38cb6d36f13168e5076d5c4 100644
--- a/net/http/http_stream_parser.cc
+++ b/net/http/http_stream_parser.cc
@@ -1078,7 +1078,7 @@ bool HttpStreamParser::CanReuseConnection() const {
return false;
if (!response_->headers || !response_->headers->IsKeepAlive())
return false;
- return connection_->socket() && connection_->socket()->IsConnectedAndIdle();
+ return connection_->socket() && connection_->socket()->IsConnected();
}
void HttpStreamParser::GetSSLInfo(SSLInfo* ssl_info) {

Powered by Google App Engine
This is Rietveld 408576698