in reply to Re^2: Using Net::SSH2 with Net::Telnet::Cisco
in thread Using Net::SSH2 with Net::Telnet::Cisco

Have you tried this code in a threaded app?

No, I usually prefer to use processes (via fork) rather than threads, and in that environment IO::Pty has never given me any problem.

In any case, as IO::Pty is only used on the login phase, you could just use a lock to serialize it so that not more than one thread could be using it at the same time.

Also, if you really find that IO::Pty is not thread safe, just report it to its maintainers... and if it affects Net::OpenSSH operation I would also like to know!

  • Comment on Re^3: Using Net::SSH2 with Net::Telnet::Cisco