httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "russell_kliese" <>
Subject Re: Kill CGI script after client breaks connection
Date Tue, 09 Aug 2005 01:46:48 GMT
> 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
> Is there an equivalent mechanism of terminating a CGI
> script after a client connection breaks in Apache2 ?

I experienced similar problems to what I expect you faced.  My sigpipe
handlers were no longer being called after upgrading to Apache 2.

The particular problem I experienced appears to be caused by some
libraries I am using that are resetting various signal handlers after
I had set them up.

The solution was to set the signal handlers just before they are

Russell Kliese
Eminence Technology

View raw message