On Sep 30, 2009, at 3:42 PM, Neil Gierman wrote:

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

Jeremy,

Is this related to buffer sizes over 1024 bytes, or is this a new SFTP
issue?

Neil



Ah it's same issue, just tried 1k buffer and it successfully transferred. There anything I can do to help get info for this problem?

--
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