Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Net::SSH::Perl hangs(during cmd), but only in Mason environment

by cmv (Chaplain)
on Aug 12, 2014 at 13:33 UTC ( [id://1097130]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Net::SSH::Perl hangs(during cmd), but only in Mason environment
in thread Net::SSH::Perl hangs(during cmd), but only in Mason environment

I have this same issue, and took a closer look at the select() code.

Note that $t is a timeout value that can be provided on the select call.

By adding a timeout value to the select() call in SSH2.pm, you can avoid this.

In SSH2.pm change this line:

my($rready, $wready) = $select_class->select($rb, $wb);

To have a timeout value (1 second), like this:

my($rready, $wready) = $select_class->select($rb, $wb, undef, 1);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1097130]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 04:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found