Subject: [libssh2] libssh2_sftp_close_handle: how to handle errors

[libssh2] libssh2_sftp_close_handle: how to handle errors

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

Hi,

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.

    --jtc

-- 
J.T. Conklin
-------------------------------------------------------------------------
This SF.net 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. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2008-04-25