Could you give me an example of how handling the connectionLost() could be accomplished? I'm not sure where I need to integrate that into what I've already got.<br><br>-Ray<br><br><div class="gmail_quote">On Mon, Feb 2, 2009 at 7:32 PM, Paul Swartz <span dir="ltr"><<a href="mailto:paulswartz@gmail.com">paulswartz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Mon, Feb 2, 2009 at 2:22 PM, ray terrill <<a href="mailto:rayjohnterrill@gmail.com">rayjohnterrill@gmail.com</a>> wrote:<br>
> I've got a Twisted Conch/SSH script that I inherited which I'm using to run<br>
> commands remotely on some servers. I'd like to add a timeout for servers<br>
> that are down, etc (the script currently hangs on these), but I'm not sure<br>
> where to add that functionality.<br>
<br>
</div>It's probably hanging because you're not handling connectionLost() in<br>
the Channel or the Transport. One of those should get called when the<br>
connection stops (including via TCP timeout).<br>
<br>
-p<br>
--<br>
Paul Swartz<br>
paulswartz at gmail dot com<br>
<a href="http://paulswartz.net/" target="_blank">http://paulswartz.net/</a><br>
AIM: z3penguin<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>