MDO <(E-Mail Removed)> wrote:
> Is there a way to implement tcp keepalive packets for http sessions
> in Linux/Apache? Ie. where a tcp packet is sent every 15 seconds or
> so? This would be used to keep the session active if it is waiting
> on a long database query to return a result.
Well, one side or the other could always make the
setsockopt(SO_KEEPALIVE) call and have "keepalives" at the TCP level.
There would be the mater of getting the frequency set. That would
_not_ be visible to the HTTP software itself - that is it would not
see that traffic, just TCP, so if there is some timeout in say the
HTTP client, _that_ is what you really need to address.
In and of itself though, the TCP connection would be perfectly content
with hours and hours of idle time.
rick jones
--
a wide gulf separates "what if" from "if only"
these opinions are mine, all mine; HP might not want them anyway...

feel free to post, OR email to raj in cup.hp.com but NOT BOTH...