cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Slow HTTP/2 download speed per connection

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 27 Sep 2015 23:35:40 +0200 (CEST)

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.

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