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
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
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" <daniel_at_haxx.se>Adresat: "herhor67 via curl-library" <curl-library_at_lists.haxx.se>; DW: "herhor67" <herhor67_at_interia.pl>; > On Fri, 28 Apr 2023, herhor67 via curl-library wrote:
>
> > Dear All, I am using a modified `10-at-a-time` example of multi
interface to
> > download data from external API.I'm not sure why, but some handles
kind of
> > get stuck and don't finish, therefore I added a timeout and
> > low-speed-timeout to all easy handles being sent via the interface.
It seems
> > though that the timeouted handles do not appear in the processing
loop,
> > therefore they are never "received" and the code is still waiting,
even
> > though there are zero live handles.Please tell me, how to know which
handles
> > got interrupted, so I can resend or skip them?
>
> All added transfers that are complete are extracted with
> curl_multi_info_read(). The rest are not yet completed.
>
> The transfers that are not completed are then presumably still trying
to
> complete.
>
> Transfers that are interupted are completed. They will also be
returned in the
> message "queue" from curl_multi_info_read().
>
> --
>
> / daniel.haxx.se
> | Commercial curl support up to 24x7 is available!
> | Private help, bug fixes, support, ports, new features
> | https://curl.se/support.html
>
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" <daniel_at_haxx.se>Adresat: "herhor67 via curl-library" <curl-library_at_lists.haxx.se>; DW: "herhor67" <herhor67_at_interia.pl>; > On Fri, 28 Apr 2023, herhor67 via curl-library wrote:
>
> > Dear All, I am using a modified `10-at-a-time` example of multi
interface to
> > download data from external API.I'm not sure why, but some handles
kind of
> > get stuck and don't finish, therefore I added a timeout and
> > low-speed-timeout to all easy handles being sent via the interface.
It seems
> > though that the timeouted handles do not appear in the processing
loop,
> > therefore they are never "received" and the code is still waiting,
even
> > though there are zero live handles.Please tell me, how to know which
handles
> > got interrupted, so I can resend or skip them?
>
> All added transfers that are complete are extracted with
> curl_multi_info_read(). The rest are not yet completed.
>
> The transfers that are not completed are then presumably still trying
to
> complete.
>
> Transfers that are interupted are completed. They will also be
returned in the
> message "queue" from curl_multi_info_read().
>
> --
>
> / 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.htmlReceived on 2023-04-28