You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Andrej van der Zee <an...@gmail.com> on 2009/10/23 10:01:17 UTC
detect disconnect in CGI
Hi,
I am using mod_cgi using Cgicc with C++ on Linux. I need a way to detect
disconnects from the client. I think I have a way to do this, but I wanted
to make sure if there is no easier way.
I am writing a space back to the client every second as part if a custom
HTTP response header. When the connection drops, this results in a sigpipe.
I am using non-parsed-headers to make sure the spaces are really flushed to
the client and not buffered by Apache.
Is there a better way to do this?
Thank you,
Andrej