Skip Menu |

This queue is for tickets about the Net-OpenSSH CPAN distribution.

Report information
The Basics
Id: 125240
Status: resolved
Priority: 0/
Queue: Net-OpenSSH

People
Owner: Nobody in particular
Requestors: jaroslav.reindl [...] aoi.sk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Fixed in version 0.78: https://metacpan.org/release/SALVA/Net-OpenSSH-0.78 Thank you for reporting the issue!