[Libevent-users] [PATCHES] use monotonic clock & infinite timeouts
Scott Lamb
slamb at slamb.org
Wed Jul 25 20:21:25 EDT 2007
Scott Lamb wrote:
> libevent's monotonic clock detection is currently broken on all
> platforms. The first attached patch fixes it. The second takes advantage
> of it to remove the 5-second idle timeout where possible.
Actually, I don't think I understand the purpose of this timeout at all.
I had thought it was to make some effort to adjust the timeout values if
the system clock gets set backwards (related to timeout_correct()). But
for that to make any sense, it'd have to be a limit on the time to wait
when there are longer timeouts. Instead, it's a time to wait when
there's no timeout scheduled at all.
I don't think it accomplishes anything. Maybe the default timeout should
be removed entirely, not just if a monotonic clock is available?
Best regards,
Scott
--
Scott Lamb <http://www.slamb.org/>
More information about the Libevent-users
mailing list