cURL / Mailing Lists / curl-library / Single Mail


RE: Porting curlx_tvnow

From: Daniel Stenberg <>
Date: Mon, 22 Aug 2011 19:51:00 +0200 (CEST)

On Mon, 22 Aug 2011, Vladimir Grishchenko wrote:

>> libcurl won't use the "wall time" for anything, so just taking a tick
>> counter like we do on windows should work perfectly fine.
> What happens when such a counter wraps? While such a coincidence is unlikely
> it seems that some timeouts may not work correctly. Is that a valid concern
> for an application that may stay up for long periods of time?

If that counter wraps, you need to make take that into account when you use
that to provide the time for libcurl as libcurl will blindly assume that time
always runs forward.

List admin:
Received on 2011-08-22