Perhaps you can use curl_easy_pause to pause a connection?

Or you can return a special value CURL_READFUNC_PAUSE or CURL_WRITEFUNC_PAUSE 
in the callback function to paise the connection.

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

Reply via email to