[Twisted-Python] Re: How to detect dead client connections in twisted

Alvin Delagon adelagon at gmail.com
Tue Jun 3 09:17:36 EDT 2008

My initial tests when enabling the TCP keepalive were successful. I've
reduced my tcp_keepalive_time for 30secs instead of 2hours (7200secs) for
testing. I'll update this thread if my problem goes back. :)

Alvin Delagon

On Tue, Jun 3, 2008 at 9:00 PM, Itamar Shtull-Trauring <itamar at itamarst.org>

> On Tue, 2008-06-03 at 14:10 +0200, Gabriel Rossetti wrote:
> > Yes, I found that in the meantime, but I tried it and it didn't work.
> > Sometimes when the connection is closed abruptly, the server doesn't
> > detect the lose. I looked at the oscar protocol implementation and they
> > have an application level keepalive, thus I though maybe it had to be
> > done that way and the server verifies every x seconds or minutes if it
> > hasn't received anything from a client, it removes it from it's
> > connected list. So Does anyone know how to deal with this problem?
> Application level pings are the only way to go if you want quick
> detection of timeouts, yes. You could do that with xmlstream by sending
> a no-op command that expects a response every few minutes.
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20080603/4036da0a/attachment.htm 

More information about the Twisted-Python mailing list