]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2674: Remove limit on HTTP headers read.
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 26 Jun 2009 07:02:45 +0000 (19:02 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 26 Jun 2009 07:02:45 +0000 (19:02 +1200)
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

index b4e015129478b7718234c8ce31366c5511567be5..3e66c1f19c2e2582ef565cce581942e8a14b229d 100644 (file)
@@ -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)