[squid-dev] Fix handling of tiny invalid responses in v4

Alex Rousskov rousskov at measurement-factory.com
Tue Jul 2 15:51:51 UTC 2019


Hi Amos,

    Do you plan to commit the following v5/master fix to v4? If that is
your plan, then what is the current ETA and do you need help with
porting or testing these changes to/in v4?


Thank you,

Alex.


> https://github.com/squid-cache/squid/commit/26e3e64019d5d8adc3f16ed2a0547e828b4007f5

>  Fix handling of tiny invalid responses (#422)
> 
> Squid converted any invalid response shorter than 4 bytes into an
> invalid "HTTP/1.1 0 Init" response (with those received characters and a
> CRLFCRLF suffix as a body). In some cases (e.g., with ICAP RESPMOD), the
> resulting body was not sent to the client at all.
> 
> Now Squid handles such responses the same way it handles any non-HTTP/1
> (and non-ICY) response, converting it into a valid HTTP/200 response
> with an X-Transformed-From:HTTP/0.9 header and received bytes as
> a message body.


More information about the squid-dev mailing list