in reply to Re^3: Working around limit to number of connections vis Net::OpenSSH
in thread Working around limit to number of connections with Net::OpenSSH

I agree. I'm just happy to figure out why the code wasn't working. Ideally I'd like for the new file objects to re-use an existing Net::OpenSSH object or destroy existing objects that use the connection. I'm currently trying to figure out how to do that.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

  • Comment on Re^4: Working around limit to number of connections vis Net::OpenSSH

Replies are listed 'Best First'.
Re^5: Working around limit to number of connections vis Net::OpenSSH
by salva (Canon) on Mar 28, 2017 at 11:56 UTC
    You should be able to reuse the Net::OpenSSH object/connection as many times as you like.

    AFAIK, nor the module, neither ssh leak file descriptors, so the issue is probably in your code...