[squid-dev] [PATCH] ICAP trailer support

Eduard Bagdasaryan eduard.bagdasaryan at measurement-factory.com
Tue Nov 8 14:05:57 UTC 2016


Hello,

This patch introduces the initial ICAP trailer support. ICAP trailers are
currently specified by
https://datatracker.ietf.org/doc/draft-rousskov-icap-trailers/. For now,
Squid logs and ignores all parsed ICAP header fields.  In future we plan
to add code for using ICAP trailers for transaction annotations and
access logging.

Also refactored HttpHeader parsing methods in order to reuse them for
ICAP trailer parsing.

Also simplified and fixed headers isolating code while dealing with
empty (i.e. zero header fields) headers. Old httpMsgIsolateHeaders()
tried to re-implement header end detection/processing logic that is
actually covered by headersEnd(). Old httpMsgIsolateHeaders() could
return success for some garbage input (e.g., a buffer of several CRs)
even if no end of headers was found.

Regards,
Eduard.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: SQUID-157-parse-icap-trailer-t8.patch
Type: text/x-patch
Size: 57173 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20161108/2d348076/attachment-0001.bin>


More information about the squid-dev mailing list