curl / Mailing Lists / curl-library / Single Mail
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: how to make requests of http2 using curl

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 17 Dec 2019 08:32:14 +0100 (CET)

On Tue, 17 Dec 2019, peng xu via curl-library wrote:

> curl_multi_setopt(easy_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);

curl_multi_setopt() needs a *multi* handle in its first argument, not an easy
handle. This is therefore a very bad line of code.

You can only do multiplexing with the multi interface in curl, since the easy
interface makes a single transfer synchronously all the way until completed
it can't multiplex.

-- 
  / daniel.haxx.se | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-12-17