]> git.ipfire.org Git - thirdparty/squid.git/commit - src/Server.cc
Bug 2038: check reply_body_max_size before ICAP
authorrousskov <>
Sat, 9 Feb 2008 01:30:18 +0000 (01:30 +0000)
committerrousskov <>
Sat, 9 Feb 2008 01:30:18 +0000 (01:30 +0000)
commit4741655593ce55dd6b0ba50b2d8dd4f9b82ebf4e
treea44072c933a6291a44646384e2cb92cff5810e95
parent0667cbfb5a0b749a6d0f670f99b69e7bd0d64290
Bug 2038: check reply_body_max_size before ICAP

Use newly added HttpReply::expectedBodyTooLarge() check to support the
reply_body_max_size ACL when the expected body size may be known. The check
is now shared between server and client sides.

The server side needs to do the checks before feeding the data to ICAP.
Otherwise, ICAP service may suck a large response in and spit a small response
out. It was decided that the reply_body_max_size ACL should apply to the
virgin response as well.

The server side does not perform HttpReply::receivedBodyTooLarge() check yet.
src/Server.cc
src/Server.h