I'm configuring an Apache 2 server with the xsendfile mod to serve video files in a optimized way. My OS is Debian 6 stable and im using mod_status with ExtendedStatus On.
Right now I'm having a problem with some browsers making many request to the same file (Safari and Chrome are the most abusing) and all the request they made, witch are more than 8 for every file, are kept in Apache with the status "W" witch is sending reply.
I have a doubt about that the request being kept as "sending reply" for a long time (more than 100 secs), is for a bad Apache configuration or its just that mod keeping the connection open while it process the file, even if the user closed the browser or the tab where the video is downloading.
Having say that, on my developer machine I have Ubuntu with Apache/2.2.22 with the same configurations and this does not happen. When i close one tab on my browser, it almost immediately changes the status of the request to "_" (Waiting for Connection).
I have set in my httpd.config : KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 2
And that does not avoid Apache keeping the connections in a "W" state.
What can i do to disable that behavior in the Apache on my production machine?