]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 1754: BodyReader was reading too much data from the socket buffer.
authoradrian <>
Thu, 7 Sep 2006 07:00:03 +0000 (07:00 +0000)
committeradrian <>
Thu, 7 Sep 2006 07:00:03 +0000 (07:00 +0000)
commitcf2d41db272e25f0fb06903a3e8dcd7a13306830
treee45a4b675b349dd7b0ea95cdd17ebd1e6e45665a
parentc398168dc2a97d9a5aed9d19c7e8b388d73ce246
Bug 1754: BodyReader was reading too much data from the socket buffer.

Fix the BodyReader read routine to only empty enough data to satisfy the
given Content-Length; rather than emptying the buffer entirely.
Some clients have a habit of stuffing a \r\n at the end of a POST body and
this was being (over)read and hitting an assertion.
src/BodyReader.cc