direct responce from ICAP server in REQMOD

From: Tsantilas Christos <chtsanti@dont-contact.us>
Date: Wed, 28 Mar 2007 21:03:28 +0300

 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
Received on Wed Mar 28 2007 - 12:02:07 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Apr 01 2007 - 12:00:01 MDT