[Twisted-Python] How to set client timeout with reactor.listenTCP?
uupandemo
uupandemo at 126.com
Mon Jun 23 10:36:45 EDT 2008
def main():
port=8008
reactor.listenTCP(port,policyServerFactory())
reactor.run()
$ telnet localhost 8008
Trying 127.0.0.1...
Connected to policy.126.com (127.0.0.1).
Escape character is '^]'.
--------------
Client will not close the connect unit it disconnects itself. But the server can't control the connect. In some critical environment, the server has to maintain a lot of connect which maybe is idle.
So I want to the server initiative disconnect the idle connection reache timeout.
在2008-06-23 19:33:35,"Jean-Paul Calderone" <exarkun at divmod.com> 写道:
>On Mon, 23 Jun 2008 11:37:33 +0800 (CST), uupandemo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20080623/16783664/attachment.htm
More information about the Twisted-Python
mailing list