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: Curl multi socket function receiving a new socket fd before POLL REMOVE on another

From: Daniel Stenberg via curl-library <>
Date: Fri, 23 Jun 2023 10:32:50 +0200 (CEST)

On Thu, 22 Jun 2023, Andrei Georgescu via curl-library wrote:

> I assumed that, in curl multi (driven by curl_multi_socket_action) the
> socket fds are sequentially used, i.e. only one at the time, during
> transfer.

That's a wrong assumption and hope no documentation anywhere tricked you into
thinking so.

Each transfer might use zero, one or more sockets and subsequent transfers as
well. Sometimes they will reuse sockets, sometimes not. The API makes no
promises or guarantees. It tells you what sockets it works with.

> Can a multi driven easy trasfer have multiple sockets involved at the same
> time ?


  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2023-06-23