cURL / Mailing Lists / curl-library / Single Mail

curl-library

status update: http2 multiplexed uploads

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 21 May 2015 09:27:58 +0200 (CEST)

Hey,

I've successfully used the http2-upload.c[1] code to upload 600 parallel
streams to the test server and they were all sent off fine and the responses
received were stored fine. MAX_CONCURRENCY on the server was set to 100.

This is using git master. I'm not celebrating just yet, but it is looking
pretty good. I'll continue testing.

Commit b0143a2a3 was crucial for this, as I realized we didn't store and use
the read callback in the easy handle but in the connection struct which is
completely wrong when many easy handles are using the same connection! I don't
recall the exact reason why I put the data in that struct (I went back and
read the commit messages etc) but I think this setup is correct conceptually
and code-wise, so if this leads to some side-effects I think we need to just
fix it.

[1] = https://github.com/bagder/curl-http2-dev/blob/master/http2-upload.c

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