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


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.


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux