cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Slow HTTP/2 download speed per connection

From: Mohammad_AlSaleh <ce.mohammad.alsaleh_at_gmail.com>
Date: Mon, 28 Sep 2015 01:30:06 +0300

On Sun, Sep 27, 2015 at 11:35:40PM +0200, Daniel Stenberg wrote:
> On Sat, 26 Sep 2015, Tatsuhiro Tsujikawa wrote:
>
> >If I just commented out Curl_expire(), I got 120MiB/s.
>
> I've now made the Curl_expire() conditional so that it won't get called
> unless it needs to tell another handle than the current one - which we need
> to do because it has to act on incoming data without its socket getting any
> traffic - and I now set TCP_NODELAY unconditionally for HTTP/2 sockets.
>
> Both commits were just pushed to git.
>
> I'm now seeing about 428MB/sec speeds on my localhost for a single-stream
> transfer getting an 8GB file over HTTPS+nghttpd.
>
> Downloading HTTP 1.1 from a localhost Apache gets me about 550MB/sec.
>

I confirm the bug is fixed.

Thank you both for taking the time to investigate this and fix it.

> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-09-28