On Thu, 2 Jul 2009, Steven Van Ingelgem wrote:
> libssh2_sftp_opendir() is done, now receive listing!
> Fingerprint: CC D4 A7 C3 F8 34 FF 04 66 BD 44 94 5B 23 B6 4A
> --fix----- 501 502 12288 .
> --fix----- 0 0 2506752 ..
> --fix----- 501 502 0 sess_f5e8e21eb138870ec78ce586f144b509
> ... <lot of files> ...
> --fix----- 501 502 0 sess_b439af87ac406d9aad6aaaa5d88ba10b
Is that showing all files?
> ERROR: Would block waiting for status message
> [the error i put there via this code]:
> shutdown:
> if ( session ) {
> char *errmsg;
> int len;
> libssh2_session_last_error(session, &errmsg, &len, 0);
> printf( "ERROR: %*s\n", len, errmsg );
That error seems to have been stored previously (as the only time that message
is used is in sftp_open) and simply wasn't properly cleared afterwards. Thus
it looks like this app might have worked for you non-blocking. You think that
might be right?
-- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2009-07-02