[squid-dev] [PATCH] ICAP trailer support
squid3 at treenet.co.nz
Tue Nov 15 05:18:56 UTC 2016
On 13/11/2016 7:01 a.m., Eduard Bagdasaryan wrote:
> 2016-11-11 8:27 GMT+03:00 Amos Jeffries <squid3 at treenet.co.nz>:
>> In Adaptation::Icap::ModXact::expectIcapTrailers() please use
>> getByIdIfPresent(Http::TRAILER, ...) since Trailer is a registered
>> In answer to "TODO: should we add a new Http::scInvalidTrailer?" only if
>> the draft defines an HTTP 5xx status code called "Ivalid > Trailer".
>> Since the Http::sc* are HTTP status codes.
> The draft does not define HTTP 5xx status codes for invalid trailers.
> Also please note that scInvalidHeader (600 code) is marked for
> internal/Squid-only use. Probably we could similarly use
> scInvalidTrailer with code 602 (for example).
>> Only if all the callers of this function are handling the case where it
>> produces non-1 and adding a terminator LF explicitly for a re-parse
> I have only found such 're-parse' logic inside
> HttpStateData::processReplyHeader(), marked with the comment. However
> this code does not use the patch-affected HttpHeader::parse(): it uses
> Http::One::Parser::grabMimeBlock() instead. So, nothing to fix here, IMO.
Thanks for checking. Applied to Squid-5 as rev.14941.
More information about the squid-dev