I'm back, now that SCP works I apparently missed the fact that SFTP is failing pretty reliably for me (and co-workers trying my application) Most of the initial attempts at first were resulting in blocking on the libssh2_sftp_write call after only about 250k or so is sent. When sending to a local server, I'm getting a 0 returned from the write call along with -7 from libssh2_sftp_last_error. here's a sample of the trace if it's helpful, looks like before it fails the block was split:

[libssh2] 2.103577 Conn: Sending 32768 bytes on channel 0/0, stream_id=0
[libssh2] 2.104319 Conn: Writing 32768 bytes on channel 0/0, stream #0
[libssh2] 2.104359 Conn: Sending 32768 bytes on channel 0/0, stream_id=0
[libssh2] 2.105073 Conn: Writing 32768 bytes on channel 0/0, stream #0
[libssh2] 2.105108 Conn: Sending 32768 bytes on channel 0/0, stream_id=0
[libssh2] 2.105921 Conn: Writing 32768 bytes on channel 0/0, stream #0
[libssh2] 2.105933 Conn: Splitting write block due to 8192 byte window_size on 0/0/0
[libssh2] 2.105943 Conn: Sending 8192 bytes on channel 0/0, stream_id=0
[libssh2] 2.106125 Conn: Writing 32768 bytes on channel 0/0, stream #0
 ... libssh2_sftp error: -7


not sure if some more trace log calls could be put in for helping like last time with the SCP issues, but so far having trouble uploading to the servers I have access to.

I'll see about testing with some of the simpler C example and will post my results if I can reproduce it there, hopefully I can.
--
Jeremy Knope / Software Developer / Ambrosia Software, Inc. -- 
http://www.AmbrosiaSW.com/

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to