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
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Richard W.M. Jones via curl-library <curl-library_at_lists.haxx.se>
Date: Sun, 26 Feb 2023 14:01:04 +0000
On Fri, Feb 24, 2023 at 11:01:21AM +0000, Richard W.M. Jones wrote:
> 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.
Just to clear this point up, the random 403 errors were caused by a
bug in my code and (of course!) had nothing to do with curl.
Rich.
Date: Sun, 26 Feb 2023 14:01:04 +0000
On Fri, Feb 24, 2023 at 11:01:21AM +0000, Richard W.M. Jones wrote:
> 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.
Just to clear this point up, the random 403 errors were caused by a
bug in my code and (of course!) had nothing to do with curl.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2023-02-26