Public bug reported:

my libcurl is compiled with scp/sftp support. when sftp destination is roun out 
of space, libcurl hangs, and try send more data forever. The error is in 
lib/ssh.c at Curl_scp_send and Curl_sftp_send function:
The libssh2_sftp_write returns number of bytes written or negative on failure. 
(http://www.libssh2.org/libssh2_sftp_write.html), the libssh2_channel_write 
function do the same.

But this curl_scp_send and Curl_sftp_send sould return the number of written 
bytes or -1.
(the check is in Curl_write function). So if the libssh2 functions returns 
negative error number, curl hope everytings is ok -> try forever.

The little fix is attached for curl 7.19 (lucid)

** Affects: curl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1056141

Title:
  libcurl hangs when sftp destination run out of space

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1056141/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to