Subject: [libssh2] libssh2_sftp_close_handle: how to handle errors

[libssh2] libssh2_sftp_close_handle: how to handle errors

From: J.T. Conklin <>
Date: Thu, 24 Apr 2008 20:35:34 -0700


libssh2_sftp_close_handle() currently returns -1 on failure. What is
client code supposed to do to handle this?

It appears that a non-responsive ssh/sftp server will make it
impossible to close and reclaim resources for the sftp handle. If you
call libssh2_sftp_shutdown() on the sftp session while the sftp handle
is still opened, it seems libssh2_sftp_dtor() get itself in an endless
loop trying to close the opened (but impossible to close) handles.


J.T. Conklin
This email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2.;198757673;13503038;p?
libssh2-devel mailing list
Received on 2008-04-25