[Twisted-Python] Problems with long term connections?
johnpote at jptechnical.co.uk
Fri Feb 16 05:34:11 EST 2007
Thanks for all the quick replies. Very helpful, esp the docs links.
Initially I will only be using just a 'few' connections, about 4 to 6.
Good point about 'stateful packet inspection' as at least one of the
servers will be on my home network connecting to the internet via a
Thomas Hervé wrote:
> Quoting Thomas Jacob <jacob at internet24.de>:
>> 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?).
> Here is documented the setTcpKeepAlive method:
> Generally you can enable it in the connectionMade of your protocol.
More information about the Twisted-Python