[Twisted-Python] Socket - connection lost

Norman Tindall NormanTindall at zdisk.net
Fri Sep 29 04:12:27 EDT 2006


      Reciently i wrote a simple client using Reconnecting Factory.
      That client logins to my socket server.. and that`s it.

      Interesting thing is that it is seems that twisted client,
      sends some ping on a TCP level without sending any data to the
      socket directly.
      Because when i pull out cord from the ethernet card simulating
      network falure, client in about 10-15 seconds determines that
      connection lost!! (pretty cool) While my server still thinks
      that client is up.

      I am using SO_KEEPALIVE on server - but documentations says
      it will only ping (and so timed outed) on a few hours.

      How do i make my server act the same way as the client?
      (to make some sort of a low level cheching of connections is
      broken without actualy sending anything to socket)

Best regards,
 Norman                          mailto:NormanTindall at zdisk.net

More information about the Twisted-Python mailing list