Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
59386
Status:
resolved
Priority:
Low/Low
Queue:

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

BugTracker
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


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.