<div>Hello,</div><div><br></div>No, getTcpKeepAlive will only tell you if SO_KEEPALIVE is enabled. It's setTcpKeepAlive you want. If it's enabled, once the keepalive times out on a half-open scenario, the connectionLost method will be triggered. You can read the API docs here:<div>
<br></div><div><a href="http://twistedmatrix.com/documents/8.2.0/api/twisted.internet.tcp.Connection.html#getTcpKeepAlive">http://twistedmatrix.com/documents/8.2.0/api/twisted.internet.tcp.Connection.html#getTcpKeepAlive</a></div>
<div><a href="http://twistedmatrix.com/documents/8.2.0/api/twisted.internet.tcp.Connection.html#setTcpKeepAlive">http://twistedmatrix.com/documents/8.2.0/api/twisted.internet.tcp.Connection.html#setTcpKeepAlive</a></div><div>
<br></div><div>Best Regards,</div><div>Alvin</div><div><br><div><br><div class="gmail_quote">On Wed, Feb 17, 2010 at 1:06 AM, gary clark <span dir="ltr"><<a href="mailto:burslem2001@yahoo.com">burslem2001@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have to poll at the twisted server "getTcpKeepAlive" for the state of the keep alive.<br>
<br>
<br>
Thanks,<br>
Garyc<br>
<br>
--- On Tue, 2/16/10, gary clark <<a href="mailto:burslem2001@yahoo.com">burslem2001@yahoo.com</a>> wrote:<br>
<br>
> From: gary clark <<a href="mailto:burslem2001@yahoo.com">burslem2001@yahoo.com</a>><br>
> Subject: [Twisted-Python] Pulling the ethernet cable out<br>
<div class="im">> To: "Twisted general discussion" <<a href="mailto:twisted-python@twistedmatrix.com">twisted-python@twistedmatrix.com</a>><br>
</div>> Date: Tuesday, February 16, 2010, 10:15 AM<br>
<div><div></div><div class="h5">> Hello,<br>
><br>
> I'm tested my client server model. The server being a<br>
> twisted server.<br>
> I am using the class NetstringReceiver. When I close down<br>
> the client the appropriate call to close the connection is<br>
> made "connectionLost". However when I just pull the client<br>
> connection cable from the network. I would expect the call<br>
> to be made to indicate a connection is lost at the twisted<br>
> server. I dont see this.<br>
><br>
> I am going through a local hub and not sure what at the<br>
> moment to think of this. I am using ssl to communicate.<br>
><br>
> If somebody could shed some light on this that would be<br>
> great.<br>
><br>
> Thanks,<br>
> Garyc<br>
><br>
><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>
><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.alvinatorsplayground.blogspot.com/">http://www.alvinatorsplayground.blogspot.com/</a><br>
</div></div>