Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: HTTP/2 and multi-streams

From: Kamil Dudka via curl-and-python <curl-and-python_at_cool.haxx.se>
Date: Wed, 15 Jan 2020 10:15:49 +0100

On Wednesday, January 15, 2020 9:02:57 AM CET you wrote:
> I'm trying to parallelize requests on HTTP/2 streams (not
> connections). Whatever I do, pycurl only uses one stream per HTTP/2
> connection.
>
> What I did: following
> <http://pycurl.io/docs/latest/curlmultiobject.html>, I:
>
> m = pycurl.CurlMulti()
> m.setopt(pycurl.M_PIPELINING, True)

Starting with curl 7.43.0, CURLMOPT_PIPELINING takes a bitmask. Assuming
True translates to 1L, it means CURLPIPE_HTTP1, which has no effect since
curl 7.62.0. You need to pass CURLPIPE_MULTIPLEX as the value instead:

    https://curl.haxx.se/libcurl/c/CURLMOPT_PIPELINING.html

Kamil

_______________________________________________
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2020-01-15