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: Critique our use of curl; and HTTP/2, /3, multiplexing & pipelining questions

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 23 Feb 2023 23:37:52 +0100 (CET)

On Thu, 23 Feb 2023, Richard W.M. Jones wrote:

>> The *can* share the same conncetion with HTTP/2 and HTTP/3 multiplexing, yes.
>
> Does this sharing happen without us doing anything, or do we need to
> use the curl share interface? I only discovered share after sending
> the original message yesterday. I then patched nbdkit to use it:

curl can only do multiplexing for transfers done within a single multi handle.

> should we expect curl + HTTP/2 to work well

Yes it should. It has been used in production for years.

> The share interface (instead of multi) _won't_ give us HTTP/2
> multiplexing?

Nope. And note that sharing the connection pool with the share interface is
not thread-safe. It is a known bug/limitation.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-02-23