[users@httpd] Detecting early termination by client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 
placed.

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
Nationwide-Totalflood
6033 W.Century Blvd.
Los Angeles, CA 90045
310-342-3602

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux