Skip Menu |

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

Report information
The Basics
Id: 59386
Status: resolved
Priority: 0/
Queue: Net-SSH2

People
Owner: Nobody in particular
Requestors: david [...] kineticode.com
Cc:
AdminCc:

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



CC: denison-support [...] kineticode.com
Subject: Socket Not Closing
Date: Wed, 14 Jul 2010 12:41:44 -0700
To: bug-net-ssh2 [...] rt.cpan.org
From: "David E. Wheeler" <david [...] kineticode.com>
Howdy, We noticed that Net::SSH2 is leaving an extra file descriptor opened. So if you connect to a server, do some stuff, then call disconnect() and let the SSH2 object go out of scope, lsof will show one more file descriptor left open than before it ran (assuming the script is still running, of couse). This seems to be because the socket isn't getting closed. I can clear up the problem by adding $ssh2->sock->close; Just before a call to $ssh2->disconnect; I would expect disconnect() to do this for me, or at least for it to happen when $ssh2 goes out of scope. Best, David
fixed in the development version