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: Question regarding passing CURL_SOCKET_TIMEOUT to multi_socket_action

From: Daniel Stenberg via curl-library <>
Date: Sun, 24 Oct 2021 12:38:13 +0200 (CEST)

On Sun, 24 Oct 2021, Yongkang Huang via curl-library wrote:

> So is running_handle is 0 legit in this case that I should call
> curl_multi_info_read to read the result?

Yes. It means the transfer is already done.

> When a curl_multi_socket_action returns error code, should I just think all
> the existing easy handle added are failed and the multi handle cannot be
> used anymore? Or is there any recovery mechanism?

It probably depends on what error code you get in what situation. I don't
think there's a generic recovery mechanism that works for all, but you're
advised to act in the best way for your application.

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