cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_RANGE reset for ftp bugfix

From: Michal Marek <mmarek_at_suse.cz>
Date: Fri, 16 Feb 2007 16:05:01 +0100

Daniel Stenberg wrote:
> On Fri, 16 Feb 2007, Michal Marek wrote:
>
>> conn->data->reqdata.maxdownload) was removed from url.c. My
>> understanding is that protocols that make use of maxdownload have to
>> maintain it on their own, correct? If so, then the attached patch
>> should fix the problem reported in curl-users:
>
> I don't think it should (need to) touch data->reqdata.resume_from as
> that will break CURLOPT_RESUME_FROM(_LARGE) if used at the same time.

Ah, ok. I see you posted the correct patch on curl-users meanwhile.

BTW in lib/urldata.h, there is

  curl_off_t maxdownload; /* in bytes, the maximum amount of data to
fetch, 0
                             means unlimited */

Shouldn't this be "-1 means unlimited" or am I not getting it again?

thanks,
Michal
Received on 2007-02-16