[squid-users] How to extend Squid ICAP preview size
Felipe Arturo Polanco
felipeapolanco at gmail.com
Mon Sep 16 14:37:11 UTC 2019
We would like to add some logic to our custom made ICAP server, one of
these logics is to analyze up to 10MB of data of a given file and if the
file is larger than that, squid should not keep sending it to icap,
basically, a 204 message should be returned.
We understand this is not possible with Transfer-Complete OPTION, because
that will send the whole file to the ICAP server, no matter the size.
And while Transfer-Preview may be good for this, squid has a cap of 64K of
preview size that limit us in the aspect.
Is there a way to extend this limit? Modifying the source code perhaps?
If so, what are the disadvantages of doing so? Would it require more RAM
per response or is RAM dynamically allocated as the file is being received?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the squid-users