Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Problem with Net::SSH::Perl and threads

by McD (Chaplain)
on Nov 24, 2008 at 22:23 UTC ( [id://725716]=note: print w/replies, xml ) Need Help??


in reply to Problem with Net::SSH::Perl and threads

I've recently had good luck with Net::SSH::Perl using forked children, rather than threads. If it's early enough in your design, and you're on a flavor of unix, consider forking rather than threading. (I know threads are more popular than forks these days, but unix is actually quite good at forking.)

I used socketpair() and IO::Select to manage IPC with the kids. Works great.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found