]> git.ipfire.org Git - thirdparty/squid.git/commit - src/HttpReply.h
Bug 2038: check reply_body_max_size before ICAP
authorrousskov <>
Sat, 9 Feb 2008 01:27:59 +0000 (01:27 +0000)
committerrousskov <>
Sat, 9 Feb 2008 01:27:59 +0000 (01:27 +0000)
commit0667cbfb5a0b749a6d0f670f99b69e7bd0d64290
treecdb1393c53a648f3635dd67f987ca354516b01c3
parent89db45fab46d32a83ffe6c36288a8293d2633d79
Bug 2038: check reply_body_max_size before ICAP

Moved maxReplyBodySize-related code from ClientHttpRequest to HttpReply
because server-side needs it too to check limits before ICAP sucks all the
data in.

Calculating limit requires knowing HttpRequest because it affects expected
content length. Since I did not find a single place where any HttpReply would
be guaranteed to be given the request to calculate the limit, we now supply
the request whenever a limit check is performed. The limit calculation result
is cached and the calculation should not be repeated.
src/HttpReply.cc
src/HttpReply.h
src/client_side_request.cc
src/client_side_request.h