curl / Mailing Lists / curl-users / 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: What use/example multi handle.

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Thu, 10 Feb 2022 16:39:40 +0100 (CET)

On Thu, 10 Feb 2022, Stef Bon wrote:

>> It provides a non-blocking API that allows any number of parallel transfers
>> simultaneously.
>
> I know, I've read that. But is it also a number of simultaneous connections?

I'm not sure what you're asking here. It can do one, two, five or two hundred
transfers. You decide!

> Is for every handle a socket created?

Every concurrently ongoing transfer might use one or more sockets, yes. But an
added transfer can sometimes use an existing connection (if HTTP/2 is used) so
it doesn't always create another connection/socket.

> And I'm using my own eventloop, so I'm not using the curl wait and poll
> functions.

You have the freedom to choose with libcurl.

-- 
  / 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/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-02-10