Subject: Re: libssh2_sftp_write now fails with return code -21

Re: libssh2_sftp_write now fails with return code -21

From: Mark Riordan <mriordan_at_ipswitch.com>
Date: Tue, 2 Nov 2010 09:13:09 -0500

Daniel:
> -21 is LIBSSH2_ERROR_CHANNEL_FAILURE and it is only used in a few places.
>
> Can you check what error message string libssh2_session_last_error()
> returns after you've got the error? It should help us to pinpoint
> exactly which of the channel failures it was.

libssh2_session_last_error returns "Waiting for SFTP status".

(If it's waiting, it's not very patient, as the error occurs immediately.)

Mark

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-11-02