curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: how to reduce the number of TCP session generated by an FTP download using libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Nov 2016 23:50:52 +0100 (CET)

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.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-11-07