curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL file download speed inconsistent. Slow download roughly happens once per 10 attempts

From: Nicholas Chambers <nchambers_at_lightspeedsystems.com>
Date: Tue, 11 Apr 2017 17:23:38 -0500

That doesn't sound like a bug. cURL doesn't perform any sort of
ratelimiting, and if it is working correctly the first couple of times,
the same code is executing it the third time. Why do you think its cURL
and not your network?

On 4/11/17 4:39 PM, Kai Li wrote:
>
> Hi,
>
> So first of all let me list my system specs:
>
> OS: Windows 10, 64 bit
>
> curl version: 7.53.1
>
> Build tool: VS2015 developer command prompt
>
>
> We're using libcurl in our project and we found slow file download
> issue happened randomly inside of curl. We doubt if we used libcurl
> incorrectly so I tried to use curl command line tool and download the
> exact same file. It turns out the download speed inconsistency happens
> at cmd tool as well.
>
> So I want to first start from the command tool instead of libcurl.
> Below is how I build the command line tool and its configurations.
>
> I grabbed latest curl v7.53.1 from cURL's website. I built the cURL
> (STATIC linking) with windows x86 and leave all options as default.
>
> After the build finishes and curl.exe generated, I ran the command
> "curl.exe -O http://mydownloadfile.xxx <http://mydownloadfile.xxx/>".
> The download ended with success but if I ran this cmd couple of times,
> it shows that there are cases that the download speed is extremely
> slow (500K while the regular speed is ~25M). The ratio of reproducing
> this slowness is 1/10 roughly. I'm sure my network condition is very
> stable and fast.
>
> Here is the screenshot from my tests:
>
> Inline image 1
>
> This issue can also be found at android and iOS. So I think it's not
> platform specific. Any idea if that could be a cURL bug or it's
> already a known issue? I'm on curl v7.53.1 but I can also see the
> issue on curl v7.19.x.
>
> Thanks,
>
> Kai
>
>
>
> -----------------------------------------------------------
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
> Etiquette: https://curl.haxx.se/mail/etiquette.html

-- 
Nicholas Chambers
Technical Support Specialist
nchambers_at_lightspeedsystems.com
1.800.444.9267
www.lightspeedsystems.com

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-04-12