I didn't see you have a $chan->blocking(0/1), or if that is the type of blocking you are talking about.
If you google for "Net::SSH2 timeout" you will find it has been tricky to get timeouts to work. The latest module has a few lines where timeouts can be set
andconnect ( handle | host [, port [, Timeout => secs ]] )
You might want to look at Net::SSH2 Command Timeout Before Completion for other modules that handle the timeouts better.poll ( timeout, arrayref of hashes ) #probably the timeout you want
|Replies are listed 'Best First'.|
Re^4: A little demo for Net::SSH2
by Anonymous Monk on Oct 29, 2010 at 18:14 UTC