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: Richard W.M. Jones via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 24 Feb 2023 11:01:21 +0000

On Thu, Feb 23, 2023 at 11:37:52PM +0100, Daniel Stenberg wrote:
> 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.

This is probably what's causing the random errors.

Thanks,

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-02-24