httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrej van der Zee <>
Subject detect disconnect in CGI
Date Fri, 23 Oct 2009 08:01:17 GMT

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,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message