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: herhor67 via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 28 Apr 2023 15:32:48 +0200

Very well, then it seems that I must have some kind of logic error in my application. Does a handle with timeout have some different message/status? There seems to only be "CURLMSG_DONE" but maybe somehing in the `CURLcode result` field?Temat: Re: Curl Multi with easy handle timeoutData: 2023-04-28 14:57Nadawca: "Daniel Stenberg" &lt;daniel_at_haxx.se&gt;Adresat: "herhor67 via curl-library" &lt;curl-library_at_lists.haxx.se&gt;; DW: "herhor67" &lt;herhor67_at_interia.pl&gt;; &gt; On Fri, 28 Apr 2023, herhor67 via curl-library wrote:
&gt;
&gt; &gt; Dear All, I am using a modified `10-at-a-time` example of multi
interface to
&gt; &gt; download data from external API.I'm not sure why, but some handles
kind of
&gt; &gt; get stuck and don't finish, therefore I added a timeout and
&gt; &gt; low-speed-timeout to all easy handles being sent via the interface.
It seems
&gt; &gt; though that the timeouted handles do not appear in the processing
loop,
&gt; &gt; therefore they are never "received" and the code is still waiting,
even
&gt; &gt; though there are zero live handles.Please tell me, how to know which
handles
&gt; &gt; got interrupted, so I can resend or skip them?
&gt;
&gt; All added transfers that are complete are extracted with
&gt; curl_multi_info_read(). The rest are not yet completed.
&gt;
&gt; The transfers that are not completed are then presumably still trying
to
&gt; complete.
&gt;
&gt; Transfers that are interupted are completed. They will also be
returned in the
&gt; message "queue" from curl_multi_info_read().
&gt;
&gt; --
&gt;
&gt; / daniel.haxx.se
&gt; | Commercial curl support up to 24x7 is available!
&gt; | Private help, bug fixes, support, ports, new features
&gt; | https://curl.se/support.html
&gt;

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-04-28