[squid-dev] [PATCH] Mark aborted RESPMOD bodies as truncated

Alex Rousskov rousskov at measurement-factory.com
Tue Aug 18 22:31:56 UTC 2015


Hello,

    When an adaptation service aborts a transaction (for whatever
reason), the attached patch marks the body produced by that service as
truncated.

Without these changes, the recipient of the truncated body (e.g., HTTP
client) often cannot tell that the body was actually truncated. This may
happen, for example, when Squid uses chunked encoding for body delivery.
Lying about truncation may result in rather serious user-level problems.

I do not know whether these changes fix all related bugs, but they do
help in several eCAP truncation cases we know about.


HTH,

Alex.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SQUID-99-truncate-aborted-resp-bodies-t6.patch
Type: text/x-diff
Size: 17599 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20150818/4cc1ee35/attachment-0001.patch>


More information about the squid-dev mailing list