[Bug 1056141] Re: libcurl hangs when sftp destination run out of space
Alessandro Ghedini
ghedo at debian.org
Sat Dec 15 19:58:51 UTC 2012
This appears to have been fixed upstream in curl 7.28.1 (for sftp too).
** Changed in: curl (Ubuntu)
Status: New => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to curl in Ubuntu.
https://bugs.launchpad.net/bugs/1056141
Title:
libcurl hangs when sftp destination run out of space
Status in “curl” package in Ubuntu:
Fix Committed
Bug description:
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1056141/+subscriptions
More information about the foundations-bugs
mailing list