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

where is this tcp_keepalive_time located? is it on twisted source code or python library?

Hello, It's actually a setsockopt() call to enable tcp_keepalive on your application. It's located in twisted/internet/tcp.py starting from line 431. :) def getTcpKeepAlive(self): return operator.truth(self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE)) def setTcpKeepAlive(self, enabled): self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, enabled) Twisted uses the built-in python socket library. --- Alvin Delagon On Fri, Jun 6, 2008 at 6:55 PM, <big_tyo@inf.its-sby.edu> wrote:
where is this tcp_keepalive_time located? is it on twisted source code or python library?
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (2)
-
Alvin Delagon
-
big_tyo@inf.its-sby.edu