We are using Comet that is routed via a proxy running Apache with mod_proxy and mod_security. The connections are long-lived, and have a client-side timeout.
When the connection times out, the client closes the connection (sends a TCP FIN). We see that the Apache does not close the connection to the server until the ProxyTimeout passes.
Is there a workaround for this? We are rather new to working with Comet technology, and Apache/mod_security is the standard application firewall in our shop. If these are not suitable to handling long-lived connections, is there another proven solution (Nginx doesn't have a mod_security equivalent)?