cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fix for millisecond precision timeout in libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 2 Mar 2010 22:21:43 +0100 (CET)

On Mon, 1 Mar 2010, Moshenko, Jacob wrote:

> When using libcurl I stumbled upon a bug using sub-second precision timeouts
> with libcurl. If you set millisecond timeouts (e.g. TIMEOUT_MS to 200ms)
> the logging output will report that it has timed out after the appropriate
> amount of time. The actual elapsed time however will be rounded up to the
> nearest second (e.g. 1s for 200ms timeout). I have created a patch to the
> library that will fix the reporting of the actual timeout duration as well
> as the timeout itself.

Thank you! Your patch had a faulty assumption that there always was a timeout,
but I fixed that minor flaw and committed this improvement just now. Please
checkout the current code and see that it truly works as intended for you!

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