Could you give me an example of how handling the connectionLost() could be accomplished?&nbsp; I&#39;m not sure where I need to integrate that into what I&#39;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">&lt;<a href="mailto:paulswartz@gmail.com">paulswartz@gmail.com</a>&gt;</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 &lt;<a href="mailto:rayjohnterrill@gmail.com">rayjohnterrill@gmail.com</a>&gt; wrote:<br>

&gt; I&#39;ve got a Twisted Conch/SSH script that I inherited which I&#39;m using to run<br>
&gt; commands remotely on some servers. &nbsp;I&#39;d like to add a timeout for servers<br>
&gt; that are down, etc (the script currently hangs on these), but I&#39;m not sure<br>
&gt; where to add that functionality.<br>
<br>
</div>It&#39;s probably hanging because you&#39;re not handling connectionLost() in<br>
the Channel or the Transport. &nbsp;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>