#158: libssh2_sftp_write returns incorrect value
--------------------+-------------------------------------------------------
Reporter: mstrsn | Owner: bagder
Type: defect | Status: assigned
Priority: normal | Milestone:
Component: SFTP | Version: 1.2.4
Keywords: | Blocking:
Blockedby: |
--------------------+-------------------------------------------------------
Comment(by mstrsn):
Here is the patch I used:
{{{
--- sftp.c.1.2 Thu Feb 18 17:05:46 2010
+++ sftp.c Thu Feb 18 17:09:10 2010
@@ -1467,6 +1467,9 @@
return rc;
}
else if(0 == rc) {
+ if(channel->local.window_size == 0) {
+ return LIBSSH2_ERROR_EAGAIN;
+ }
/* nothing sent is an error */
return LIBSSH2_ERROR_SOCKET_SEND;
}
}}}
-- Ticket URL: <http://libssh2.stuge.se/ticket/158#comment:2> libssh2 <http://libssh2.stuge.se/> C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-02-19