Hi,
  this is a cross-post from the main httpd users list,
since it was recommended that this question be posted
here..
POSTING 1:
To prevent my webserver from getting bogged down by
long-running CGI scripts, which are no longer
connected to the client's browser, I am trying to kill
the CGI as soon as the connection with the browser
breaks.
In the older version of Apache (1.3 for example) a CGI
script could do this by adding a signal handler for
SIGPIPE.
Is there an equivalent mechanism of terminating a CGI
script after a client connection breaks in Apache2 ?
POSTING 2:
 I hope someone can point me in a general direction,
of where to look....
  I am using mod_cgi.
  What we need here is a way to relay/signal back the 
client-disconnect to the CGI either via a signal (like
in the fastCGI module) or add some function that the
CGI can call to monitor the status of the client
connection.
  The CHANGES file in the httpd source tree says:
  *) timeout() signal handler now checks for SIGPIPE
and reports lost connections in a more user friendly
way. [Rob Hartill]
  But I could not find anything related in the source
code.
This change was made in apache 1.0.3, as mentioned in
the CHANGES file. Was this code removed out later?
  Thanks a lot for your time!
-M.K.





                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

Reply via email to