[Ssh-sftp-perl-users] Net::SFTP Patch
Brought to you by:
dbrobins
From: Robert L. <rla...@ao...> - 2004-12-22 16:15:52
|
It came to my attention that Bricolage which uses Net::SFTP was leaving sshd connections open. The Bric dev guys were doing a undef $sftp; to close the connection, but that wasn't sufficient to close the connection. And with apache not exiting at the end of the request cycle to force the connection closed, our server quickly ran out of open file handles. I've added a close_connection method to the Net::SFTP module, and thought that others might have use for such a method. I also added a DESTROY method, which I don't think necessarily belongs, but which I added just so I wouldn't have to muck with the Bric code too... Happy Holidays, Rob -- Robert Landrum Systems Programmer |