[squid-users] Problem talking ICAP to McAfee Web Gateway

Alex Rousskov rousskov at measurement-factory.com
Wed May 18 22:46:22 UTC 2016


On 05/18/2016 03:56 PM, Rob Worsnop wrote:

> In certain circumstances, MWG will start streaming the RESPMOD response
> before Squid has finished sending all the chunks in the RESPMOD request.
> 
> Squid does not like this.

If Squid does not like this, it is a Squid bug IMO.


> As far as I can tell, ICAP is no different from HTTP 

In both protocols, a server may start sending the response before the
entire request has been received, and a robust client implementation
ought to accept such "early" responses even if the protocol does not
explicitly require their support. An early response has to comply with
all the other protocol rules, of course, but there are cases where such
compliance is not a problem.

In HTTP, early responses are usually errors because the server is
unlikely to know that the request will be successful until seeing the
end of the request.

In ICAP, early responses are much more useful (and common) because an
ICAP server can "pipeline" the HTTP message back to the ICAP client,
drastically reducing message buffering requirements and user delays.
IIRC, Squid used to support early responses well.


HTH,

Alex.



More information about the squid-users mailing list