cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3581900 ] libcurl hangs when sftp destination run out of space

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 12 Nov 2012 01:03:17 -0800

Bugs item #3581900, was opened at 2012-10-30 05:46
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3581900&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SCP/SFTP
Group: hang
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Daniel Stenberg (bagder)
Assigned to: Daniel Stenberg (bagder)
Summary: libcurl hangs when sftp destination run out of space

Initial Comment:
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.

The original bug report was found here: https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1056141 and it contains a patch.

The original bug report seems to be for curl 7.19 but a quick look at current (7.28.0) code indicates that the problem remains today.

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2012-11-12 01:03

Message:
The ubuntu bug report is incorrect. The code treats a negative return value
as an error and will cause the libcurl functions to return CURLE_SEND_ERROR
internally. I can't detect how the suggested patch would make anything
differently.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3581900&group_id=976
Received on 2012-11-12

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET