How about using a different thread/process for the task that needs to be done regularly? Then you will be able to execute the tasks regularly no matter what happens in libcurl.
Get Outlook for iOS<https://aka.ms/o0ukef> ________________________________ From: curl-library <curl-library-boun...@cool.haxx.se> on behalf of Andreas Falkenhahn via curl-library <curl-library@cool.haxx.se> Sent: Wednesday, January 20, 2021 3:41:45 AM To: curl-library@cool.haxx.se <curl-library@cool.haxx.se> Cc: Andreas Falkenhahn <andr...@falkenhahn.com> Subject: Re: Forcing curl_multi_perform() to return regularly On 17.01.2021 at 22:55 Ray Satiro via curl-library wrote: > Don't wait in the callback. Easier said than done. I'm still supporting very old systems (AmigaOS) where writing to hard disk can take much longer than it takes for new data to come in from the sockets. Thus, with the current implementation curl_multi_perform() will loop 100 times before finally returning control to the user. On vintage systems like 68k AmigaOS this can take ages before control is returned so the current implementation is not very convenient for my specific purpose. IMHO there should be an option to force it to return in user-defined specific intervals, like every second or so... -- Best regards, Andreas Falkenhahn mailto:andr...@falkenhahn.com ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html
------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html