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 with easy handle timeout

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 28 Apr 2023 17:10:40 +0200 (CEST)

On Fri, 28 Apr 2023, herhor67 wrote:

> it seems that I must have some kind of logic error in my application.

Make sure you check the return code from all libcurl calls to detect if it
returns an error somewhere.

> Does a handle with timeout have some different message/status?

When a timeout triggers, the transfer stops and it returns with an error. Then
that transfer will be "delivered" as complete just like any other transfer
that completes.

> There seems to only be "CURLMSG_DONE" but maybe somehing in the `CURLcode
> result` field?

Yes, result holds a non-zero value for failures.

-- 
  / 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/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-04-28