clear the timer cache on entering event loop; reported by Victor Chang

svn:r944
This commit is contained in:
Niels Provos 2008-10-30 19:38:31 +00:00
parent c97ee898dc
commit 31cfe52662
2 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,7 @@ Changes in current version:
o Match the query in DNS replies to the query in the request; from Vsevolod Stakhov.
o Add new utility functions to correctly observe and log winsock errors.
o Do not remove Accept-Encoding header
o Clear the timer cache on entering the event loop; reported by Victor Chang
Changes in 1.4.0:
o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr.

View File

@ -695,6 +695,9 @@ event_base_loop(struct event_base *base, int flags)
struct timeval *tv_p;
int res, done;
/* clear time cache */
base->tv_cache.tv_sec = 0;
if (&base->sig.ev_signal_added)
evsignal_base = base;
done = 0;