[Twisted-Python] Twisted Conch SSH timeout
paulswartz at gmail.com
Mon Feb 2 20:32:43 EST 2009
On Mon, Feb 2, 2009 at 2:22 PM, ray terrill <rayjohnterrill at gmail.com> wrote:
> I've got a Twisted Conch/SSH script that I inherited which I'm using to run
> commands remotely on some servers. I'd like to add a timeout for servers
> that are down, etc (the script currently hangs on these), but I'm not sure
> where to add that functionality.
It's probably hanging because you're not handling connectionLost() in
the Channel or the Transport. One of those should get called when the
connection stops (including via TCP timeout).
paulswartz at gmail dot com
More information about the Twisted-Python