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

Unified Diff: net/http/http_stream_parser.h

Issue 1884943003: HttpStreamParser: Don't reuse sockets which receive unparsed data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops Created 4 years, 7 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
« no previous file with comments | « net/http/http_response_body_drainer_unittest.cc ('k') | net/http/http_stream_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_parser.h
diff --git a/net/http/http_stream_parser.h b/net/http/http_stream_parser.h
index bdd796b22a2d91b9ad17eb150267f817a771ee37..3a4258ee9f34d0800c2b7c25ae6e8e3e8297e206 100644
--- a/net/http/http_stream_parser.h
+++ b/net/http/http_stream_parser.h
@@ -223,7 +223,7 @@ class NET_EXPORT_PRIVATE HttpStreamParser {
// The amount of sent data.
int64_t sent_bytes_;
- // The parsed response headers. Owned by the caller of SendRequest. This
+ // The parsed response headers. Owned by the caller of SendRequest. This
// cannot be safely accessed after reading the final set of headers, as the
// caller of SendRequest may have been destroyed - this happens in the case an
// HttpResponseBodyDrainer is used.
@@ -234,6 +234,9 @@ class NET_EXPORT_PRIVATE HttpStreamParser {
// closes the connection.
int64_t response_body_length_;
+ // True if reading a keep-alive response. False if not, or if don't yet know.
+ bool response_is_keep_alive_;
+
// Keep track of the number of response body bytes read so far.
int64_t response_body_read_;
« no previous file with comments | « net/http/http_response_body_drainer_unittest.cc ('k') | net/http/http_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698