in reply to How to tell if a browser is still listening to a CGI

Hi,
The Apache::Connection Class from mod_perl provides a method known as aborted(), which should do what you want
  • Comment on Re: How to tell if a browser is still listening to a CGI