Menu

#3 POST request processing hangs for a couple of minutes

open
nobody
None
5
2014-08-11
2012-03-07
Igor G.
No

Hi,

I use squid version 3.1.10 and c-icap version 0.1.6

I have a custom ICAP service I wrote. It passes HTTP traffic on to another process where it is either modified or left as is, then sends the result back to the squid.
There are 2 issues i'm currently having:

  1. In the c-icap output I see weird error messages. They appear a number of minutes after HTTP activity. The error is as follows:

Error -1 while parsing headers :(0)
Process request timeout or interrupted....
Waiting for a request....

It looks like the issue in the next bullet is also somehow connected to these errors:

  1. When there is a single POST request containing form data (~1.2K) the ICAP service behaves as expected, but after sending the result back to the squid the processing thread hangs for 4 minutes. When it resumes a response comes from the web server as if nothing bad has happened.
    Below is the service output at debug level 7:

[GS]: initializing request data
[GS]: preview request, body=yes, pdl=1024 (ALLOW204)
[GS]: url=[POST http://server.com/index.php HTTP/1.1]
[GS]: written 1024 bytes from preview
[GS]: IOR -> 350 bytes read from client (EOF)
[GS]: end of data (ALLOW204), going to send/receive
[GS]: send time: 0 ms
[GS]: receive time: 0 ms
[GS]: send/receive total time: 1 ms
[GS]: 1364 bytes received from message processor (message modified)
[GS]: IOW -> 1364 bytes written back to client
[GS]: IOW -> -2 bytes written back to client
[GS]: releasing request data
Log request to access log file /var/log/guard/icap_access.log
Width: 0, Parameter:
Width: 0, Parameter:
Width: 0, Parameter:
Width: 0, Parameter:
Width: 0, Parameter:
Width: 0, Parameter:

EOF was sent back to the squid, "releasing request data" message printed out from "release_request_data" handler, meaning the the request processing completeby the ICAP server. So what is wrong?
Please let me know if you need any additional information.

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB