Anyone has ideas for this issue ? /Jd --- On Thu, 7/15/10, jd <jdsw2...@yahoo.com> wrote:
> From: jd <jdsw2...@yahoo.com> > Subject: [paramiko] select not returning in error. > To: "parmiko" <paramiko@lag.net> > Date: Thursday, July 15, 2010, 11:18 AM > Hi > I have the following code.. that executes > remote command. The problem is .. when the remote host goes > down. The select on channel does not seem to be getting in > to error. (The command is a long running command... without > much output...like copying large files..etc.) > > Attached is a code snippet. > I tried adding channel to the error > descriptor as follows, > > select([chan,], [], [chan,], timeout) > > and check for it to be non-empty.. but does not seem > to trigger. > > Any suggestion on how to work around this ? Is it > that unless there is some exchange... the error will not > trigger? > > (Note : As the commands are expected to be long > running.. it is bit difficult to estimate the time out... ) > > Thanks > /Jd > > > > -----Inline Attachment Follows----- > > _______________________________________________ > paramiko mailing list > paramiko@lag.net > http://www.lag.net/cgi-bin/mailman/listinfo/paramiko _______________________________________________ paramiko mailing list paramiko@lag.net http://www.lag.net/cgi-bin/mailman/listinfo/paramiko