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