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