From: Amos Jeffries Date: Fri, 26 Jun 2009 07:02:45 +0000 (+1200) Subject: Bug 2674: Remove limit on HTTP headers read. X-Git-Tag: SQUID_3_2_0_1~930 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b6af3495e777cb55a754501984d4876b52ee5c0;p=thirdparty%2Fsquid.git Bug 2674: Remove limit on HTTP headers read. Headers may be accumulated over more than one read. It does not make sense to limit the internal copy of the accumulated read buffer to 64KB. Reverts the internal read buffer to MemBuf defaults. This may cause issues where headers are of unbounded size. But those are expected to be caught by the header parser. --- diff --git a/src/http.cc b/src/http.cc index b4e0151294..3e66c1f19c 100644 --- a/src/http.cc +++ b/src/http.cc @@ -83,7 +83,7 @@ HttpStateData::HttpStateData(FwdState *theFwdState) : AsyncJob("HttpStateData"), surrogateNoStore = false; fd = fwd->server_fd; readBuf = new MemBuf; - readBuf->init(4096, SQUID_TCP_SO_RCVBUF); + readBuf->init(); orig_request = HTTPMSGLOCK(fwd->request); if (fwd->servers)