cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] curl_multi_perform and timers

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 12 Jul 2010 19:22:09 +0200 (CEST)

On Thu, 8 Jul 2010, Constantine Sapuntzakis wrote:

> If a small timer (e.g. 1-10ms) is set during multi_runsingle, then it's
> possible that the timer has passed by when the timer removal runs. The timer
> which was just added is then removed. This will potentially cause the timer
> list to be empty and cause the next call to curl_multi_timeout to return -1.
> Ideally, curl_multi_timeout should return 0 in this case.

Awesome catch there Constantine, thanks a bunch for that fix. Committed and
pushed just now!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-07-12