"Idle" is a funny thing. In systems with lots of socket buffering, many
small to medium document transfers will allow it to be completely written
to the socket. The httpd will then hang up in the socket close waiting for
the socket buffers to drain.
If you're fortunate enough to hang in a write (or in a select waiting for it
to be writable), then a reasonable timeout is a function of the socket
buffer size. Don't forget to factor in the socket buffer size of the client
which, of course, there's no way to know.
Also, what if your httpd is proxying a slow PH or WAIS server ? These
can easily take 5 minutes with no traffic. The user may be Buddha :-)
If you get a socket connect with no GET (or similar), then timeout real fast.
If you're already responding to a GET (or similar) then it's a hard question.
Mike
------------------------------------
Michael A. Dolan - [email protected]
TerraByte Technology (619) 445-9070