Subject: | Net::OpenSSH bug report |
Date: | Sun, 29 Apr 2018 21:33:23 +0200 |
To: | bug-Net-OpenSSH [...] rt.cpan.org |
From: | Jaroslav reindl <jaroslav.reindl [...] aoi.sk> |
Hello,
i found one issue in Net::OpenSSH perl module.
When using this module to connect to the big number of servers from list
in the way of creating new Net:OpenSSH object, then do stuff, then
->disconnect() but not destorying whole object by going out of scope,
then when using 'master_pty_force =>1' , im starting to hit OS limit for
opened files. Apparently its because master pty is created for each one
object, but when is not longer needed (eg. after ->disconnect() ), it
stays open till oject will go out of scope and this is not OK.
My suggestion woudl be to call pty->close(), after its not longer needed
(or after calling ->disconnect() ).
Regards
Jaroslav Reindl
+421 907 219 581
Slovakia