On Sat, 11 Sep 2010, Uli Zappe wrote:

there's a bug in libssh2_channel_read() that makes it return LIBSSH2_ERROR_EAGAIN instead of 0 when a file of size 0 is to be copied (using the code of the scp_nonblock.c example). As a result, scp times out instead of immediately returning normally after copying a remote file with size 0. (Lock files are a real world example of files with size 0.)

Is this testet with the current git?

I just tried, and I can't repeat this problem...! I scp a zero byte file from localhost, and scp_nonblock reports:

libssh2_scp_recv() is done, now receive data!
Got 0 bytes in 134 ms = 0.0 bytes/sec spin: 0

... just as I wanted!

--

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

Reply via email to