CGI question

Rohan nrohan at gmail.com
Mon May 26 04:35:05 EDT 2008


Hi

I have python-CGIs for my web application running on apache 2.
Few of the CGIs run for a long time.

When such a CGI is running and user presses "Stop" button of browser
(or connection is aborted) how can I identify such situation and
terminate
the CGI.
I don't want the CGI to complete the processing and terminate when it
tries to write to client pipe.
It would be good to terminate it as soon as client connection is
aborted.

How can I achieve this?

Any help is appreciated!

Thanks
Rohan



More information about the Python-list mailing list