curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Slow Windows uploads (with patch)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 4 Aug 2018 00:09:58 +0200 (CEST)

On Fri, 3 Aug 2018, Thomas Glanzmann wrote:

>> Have you tried to do something like Daniel's upload "auto-tuning" patch but
>> for the download buffers [*]? Or maybe that's not as easily done for
>> downloads...
>
>> [*] = https://github.com/curl/curl/pull/2762
>
> No, I have not. I just tried to calculate the window size manually using the
> throughput and latency and adapt. Can you get me a patch ready?

I suppose a download version of the same approach would need the download
version of SIO_IDEAL_SEND_BACKLOG_QUERY but I could't find any such... =/

> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 100 321M 100 321M 0 0 27.0M 0 0:00:11 0:00:11 --:--:-- 28.9M
>
> This is with 92ms latency on a gigabit link Canada <=> Germany.
>
> But honestly I wonder why it is so fast, because I don't see where you set in
> curl the SO_RCVBUF.

libcurl doesn't set SO_RCVBUF.

> If I download the same file with internetexplorer, I get 2.6 MB/s.

Wow!

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