summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-06 00:54:53 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-06 00:54:53 +0000
commitb75b7b2f914a5e6db0a80795b51edbbb46fce30a (patch)
tree6f9d81257cf21b0c0394352cfe7801bd191ce331 /net/http
parent8bf256dd20aefa1eb0dae0d89248e64820543b17 (diff)
downloadchromium_src-b75b7b2f914a5e6db0a80795b51edbbb46fce30a.zip
chromium_src-b75b7b2f914a5e6db0a80795b51edbbb46fce30a.tar.gz
chromium_src-b75b7b2f914a5e6db0a80795b51edbbb46fce30a.tar.bz2
Increase the maximum headers size from 32Kb to 256Kb.
BUG=22928 Review URL: http://codereview.chromium.org/242152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_network_transaction.h2
-rw-r--r--net/http/http_network_transaction_unittest.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/net/http/http_network_transaction.h b/net/http/http_network_transaction.h
index fde2152..59685ab5 100644
--- a/net/http/http_network_transaction.h
+++ b/net/http/http_network_transaction.h
@@ -371,7 +371,7 @@ class HttpNetworkTransaction : public HttpTransaction {
// grow to. If the body start is not found within this range of the
// response, the transaction will fail with ERR_RESPONSE_HEADERS_TOO_BIG.
// Note: |kMaxHeaderBufSize| should be a multiple of |kHeaderBufInitialSize|.
- enum { kMaxHeaderBufSize = 32768 }; // 32 kilobytes.
+ enum { kMaxHeaderBufSize = 256 * 1024 }; // 256 kilobytes.
// The size in bytes of the buffer we use to drain the response body that
// we want to throw away. The response body is typically a small error
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc
index 69f8c5b..a3a4647 100644
--- a/net/http/http_network_transaction_unittest.cc
+++ b/net/http/http_network_transaction_unittest.cc
@@ -1816,9 +1816,9 @@ TEST_F(HttpNetworkTransactionTest, LargeHeadersNoBody) {
request.url = GURL("http://www.google.com/");
request.load_flags = 0;
- // Respond with 50 kb of headers (we should fail after 32 kb).
+ // Respond with 300 kb of headers (we should fail after 256 kb).
std::string large_headers_string;
- FillLargeHeadersString(&large_headers_string, 50 * 1024);
+ FillLargeHeadersString(&large_headers_string, 300 * 1024);
MockRead data_reads[] = {
MockRead("HTTP/1.0 200 OK\r\n"),