From 4b6af3495e777cb55a754501984d4876b52ee5c0 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 26 Jun 2009 19:02:45 +1200 Subject: [PATCH] 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. --- src/http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2