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: Forcing curl_multi_perform() to return regularly

From: Daniel Stenberg via curl-library <>
Date: Fri, 22 Jan 2021 09:04:32 +0100 (CET)

On Fri, 22 Jan 2021, m brandenberg via curl-library wrote:

>> where writing to hard disk can take much longer than it takes for new
>> data to come in from the sockets.
> I have no skin in this game but here's an idea anyway. Perhaps the concept
> desired is 'dwell time' in the curl_multi_perform() call. A (very) soft
> realtime idea where after completing any significant work, the time passed
> since entry to the call is compared against the value and if exceeded, the
> call returns a suitable status. If 0, current/default behavior is the
> result. Fast callbacks are the responsibility of host OS and application.

I like that. Sounds like a better approach even than the rather crude
"maxloops" thing we have now.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2021-01-22