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

Unified Diff: net/http/http_network_transaction.cc

Issue 9088: Prevent recycling TCPClient socket in the case of https, so as not to crash.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction.cc
===================================================================
--- net/http/http_network_transaction.cc (revision 4520)
+++ net/http/http_network_transaction.cc (working copy)
@@ -757,8 +757,8 @@
done = true;
keep_alive = response_.headers->IsKeepAlive();
// We can't reuse the connection if we read more than the advertised
- // content length.
- if (unfiltered_eof ||
+ // content length, or if the tunnel was not established.
wtc 2008/11/04 15:08:03 Add "successfully" after "established" to make it
+ if (establishing_tunnel_ || unfiltered_eof ||
(content_length_ != -1 && content_read_ > content_length_))
keep_alive = false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698