httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Carville <>
Subject [users@httpd] Detecting early termination by client
Date Wed, 13 Apr 2005 22:55:37 GMT
I have a Perl CGI script that runs on Apache on Linux using mod_cgi.  The 
script takes a XML document POSTed by the client, parses it, validates the 
data, places the order into the Oracle database, sends a response back to the 
customer, then creates a log entry of what happened.  Unfortnately I have one 
customer who insists on not waiting for an acknowlegment (even tho he 
requests one) but drops the connection as soon as the data is on the wire.  
This (I think) is causing Apache to terminate the CGI process before it 
completes the processing.  Sometimes the order gets placed, sometimes it does 
not. Since logging happens at the end, I don't always know an order was 

Is there any way I can capture this early terminaition so I can handle it 
intelligently?  I know how to set up a signal handler but I don't know what 
signal -- if any --  to look for.

Stephen Carville
Unix and Network Administrator
6033 W.Century Blvd.
Los Angeles, CA 90045

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message