summaryrefslogtreecommitdiffstats
path: root/net/http/http_basic_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_basic_stream.cc')
-rw-r--r--net/http/http_basic_stream.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_basic_stream.cc b/net/http/http_basic_stream.cc
index 6501a59..076d18f 100644
--- a/net/http/http_basic_stream.cc
+++ b/net/http/http_basic_stream.cc
@@ -72,7 +72,13 @@ int HttpBasicStream::ReadResponseBody(IOBuffer* buf, int buf_len,
}
void HttpBasicStream::Close(bool not_reusable) {
+#ifdef ANDROID
+ // Disable connection reuse for bug 5226268
+ // [Browser] http keep-alive packets are sent too frequently to network
+ parser_->Close(true);
+#else
parser_->Close(not_reusable);
+#endif
}
HttpStream* HttpBasicStream::RenewStreamForAuth() {