Subject: [libssh2] problems with sftp_RW_nonblocking example

[libssh2] problems with sftp_RW_nonblocking example

From: Thomas Harding <thomas.harding_at_laposte.net>
Date: Tue, 7 Aug 2007 12:06:58 +0200

Hello,
I enconter problems while running sftp_RW_nonblock code sample:
   first, running vanilla code results in:
           Failure establishing SSH session: -37
   
   If I comment lines 88-89 (rc = fcntl(sock, F_GETFL, 0); fcntl(sock,
   F_SETFL, rc | O_NONBLOCK);), I have another message:
           Unable to init SFTP session

   If I comment out line ~110 (libssh2_session_set_blocking(session,
   0);), the file is correctly downloaded, but only 1000 bytes are
   uploaded (with no error message). I think this problem is due to my
   changes :)

So, it seems non-blocking mode doesn't work properly in this sample...

My configuration:
        Debian etch, kernel 2.6.18-4-k7,
        openssh-server 4.3p2-9

        libssh2 from CVS, updated 2007 08 07

Do I fill a bug report?

-- 
Thomas Harding
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-08-07