When an ICAP server responds with an http response in request
modification,  the web client waits more data from
the proxy. Iam using the squid3-icap branch.

An example of such ICAP response is:

ICAP/1.0 200 OK
Connection: keep-alive
ISTag: CI0001-XXXXXXXXX
Encapsulated: res-hdr=0, res-body=108

HTTP/1.0 403 Forbidden
Content-Type: text/html
Content-Language: en
Connection: close

17
<H1>Permition deny!<H1>
0

The proxy server sends the correct data to the client, but does not
close the connection after send all data.
Adding the line
   storeEntry()->complete();
in ClientHttpRequest::endRequestSatisfaction method solves the problem
but I think that the solution is not so simple, we need to know how to
setup the StoreEntry...

Regards,
   Christos

Reply via email to