curl-library
Re: how to reduce the number of TCP session generated by an FTP download using libcurl
Date: Tue, 8 Nov 2016 20:44:36 +0100
Le 07/11/2016 à 23:50, Daniel Stenberg wrote :
> On Sat, 5 Nov 2016, Maurice Lemarin wrote:
>
>> I'd be glad being advise how to do it right in order to be able to
>> read different parts of the same remote file through a single FTP
>> control session (and of course relying on many data sessions).
>
> Here's the comment that explains it:
>
> /* we have just sent ABOR and there is no reliable way to check if it
> was successful or not; we have to close the connection now */
>
> ... so you're doing range requests with FTP at this cost.
>
Hi,
Thanks for clarification. OK, I understand that there is no way to check
whether a "range" request was successful or not (but this I can see how
to manage it at application level), still I don't see why the QUIT is
mandatory after the ABOR command... ?
Best Regards,
Maurice
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-11-08