[Twisted-Python] Problems with long term connections?
exarkun at divmod.com
Thu Feb 15 10:02:27 EST 2007
On Thu, 15 Feb 2007 15:25:56 +0100, Thomas Jacob <jacob at internet24.de> wrote:
>I would implement some sort of keep-alive mechanism
>for those connections, something that will periodically do
>some sort of ping/pong sequence (possibly even
>using TCP's keepalive feature if that is available, anyone
>know if Twisted can request it on at least some platforms?).
>(Cf. for instance this
An application-level keepalive may be more appropriate. If
communication happens every 5 to 10 minutes anyway, then a
separate keepalive doesn't seem very useful. Your application
traffic will let you know when the connection is lost. Then
you can reconnect and re-send whatever messages you need to.
More information about the Twisted-Python