BTW, I tried moving the connect inside of opener(). The open now succeeds, but the authentication now segfaults.
What you've conclusively proved is that either Net::SSH2, or more likely, the underlying C libraries it uses, are not reentrant. Ie. Not threadsafe.
There is something wrong with using shared handle outside the thread.
Nope. The main thread of a process is a thread just like any other threads you create.
You will just have to accept that there is nothing you can do to fix or work around the problems of the module and its underlying libraries.
In reply to Re^3: SSH2 - Asynchronous Opens & Synchronous Commands
by BrowserUk
in thread SSH2 - Asynchronous Opens & Synchronous Commands
by 5haun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |