curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl fread/send buffer size

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 14 Feb 2018 08:17:06 +0100 (CET)

On Tue, 13 Feb 2018, Biju N wrote:

> can you share on what condition this calculation will be used to set the
> buffer size?
>
> https://github.com/curl/curl/blob/d25b0503795f1fbf557632ce870298
> f52f2a78c1/src/tool_operate.c#L822

That's the curl tool that sets a smaller than its default (100K) buffer size
if you ask for the transfer speed to be capped to a lower speed than so (per
second). It's just a help to make it reach a stable speed faster, its not
really necessary.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-02-14