cURL / Mailing Lists / curl-library / Single Mail


Re: FTP of growing files?

From: Kurt Fankhauser <>
Date: Sun, 1 Mar 2015 21:10:53 -0800

On Sun, Mar 1, 2015 at 11:31 AM, Daniel Stenberg <> wrote:

> If the server wanted to, it could keep the connection alive and send data
> as it arrives but I've never seen such an implementation - but even if it
> did, it would make the final size differ from the size the file claimed to
> be at the beginning which would cause libcurl to return an error due to that

Well, from the log messages that is not what I observe. The error message
appears to be originating from the server (and reported by libcurl) due the
the connection being closed rather than libcurl complaining about too many
bytes received. Maybe both things are happening?

Okay, a couple questions since I definitely need this functionality:
1) Long term, is this a feature that could eventually be added to libcurl?
2) Short term, do you have a gut feeling for how difficult it would be to
add this functionality? This is something I may have to do for our system,
but I have not yet looked at source code.

List admin:
Received on 2015-03-02