Hello,<br><br>It&#39;s actually a setsockopt() call to enable tcp_keepalive on your application. It&#39;s located in twisted/internet/tcp.py starting from line 431. :)<br><br>def getTcpKeepAlive(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return operator.truth(self.socket.getsockopt(socket.SOL_SOCKET,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; socket.SO_KEEPALIVE))<br><br>def setTcpKeepAlive(self, enabled):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, enabled)<br><br>Twisted uses the built-in python socket library.<br>
<br>---<br>Alvin Delagon<br><br><div class="gmail_quote">On Fri, Jun 6, 2008 at 6:55 PM,  &lt;<a href="mailto:big_tyo@inf.its-sby.edu">big_tyo@inf.its-sby.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
where is this tcp_keepalive_time located? is it on twisted source code or<br>
python library?<br>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.alvinatorsplayground.blogspot.com/">http://www.alvinatorsplayground.blogspot.com/</a>