Hi Daniel,

some more information:

The original test has been done against an Ubuntu 7.0.1 box (I don't know the 
exact SFTP server version). Now I ran the whole test against a completely 
different server (Windows 2000 server-based system) - with the same results. 
Some transfers (even more than against the linux box) result in 0-byte files on 
the server.

Here is a dump of a typical data structure (server response) inside the 
libssh2_sftp_open_ex() function for a failed transfer:

0x0130E240  65 00 00 00 56 00 00 00 00 00 00 00 07 53 75 63  e...V........Suc
0x0130E250  63 65 73 73 00 00 00 00 cd cd cd cd cd cd cd cd  cess....ÍÍÍÍÍÍÍÍ

The same as on the linux box. And here is a debug output for a failed transfer:

STATE: INIT => CONNECT handle 0x12f5f30; (connection #-5000)
Re-using existing connection! (#0) with host foo.bar.com
Connected to foo.bar.com (1.2.3.4) port 22 (#0)
STATE: CONNECT => DO handle 0x12f5f30; (connection #0)
DO phase starts
SFTP 0x12f6470 state change from SSH_SFTP_CLOSE to SSH_SFTP_QUOTE_INIT
SFTP 0x12f6470 state change from SSH_SFTP_QUOTE_INIT to SSH_SFTP_TRANS_INIT
STATE: DO => DOING handle 0x12f5f30; (connection #0)
SFTP 0x12f6470 state change from SSH_SFTP_TRANS_INIT to SSH_SFTP_UPLOAD_INIT
SFTP 0x12f6470 state change from SSH_SFTP_UPLOAD_INIT to SSH_SFTP_CLOSE
Upload failed: Unknown error in libssh2
SFTP DONE done
SFTP 0x12f6470 state change from SSH_SFTP_CLOSE to SSH_STOP
DO phase is complete
STATE: DOING => DO_DONE handle 0x12f5f30; (connection #0)
STATE: DO_DONE => WAITPERFORM handle 0x12f5f30; (connection #0)
Conn 0 recv pipe 1 inuse 0 athead 1
STATE: WAITPERFORM => PERFORM handle 0x12f5f30; (connection #0)
STATE: PERFORM => DONE handle 0x12f5f30; (connection #0)
Expire cleared
SFTP 0x12f6470 state change from SSH_STOP to SSH_SFTP_CLOSE
SFTP DONE done
SFTP 0x12f6470 state change from SSH_SFTP_CLOSE to SSH_STOP
Connection #0 to host foo.bar.com left intact
STATE: DONE => COMPLETED handle 0x12f5f30; (connection #-5000)

-Andreas


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to