mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
clear the timer cache on entering event loop; reported by Victor Chang
svn:r944
This commit is contained in:
parent
c97ee898dc
commit
31cfe52662
@ -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 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 Add new utility functions to correctly observe and log winsock errors.
|
||||||
o Do not remove Accept-Encoding header
|
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:
|
Changes in 1.4.0:
|
||||||
o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr.
|
o allow \r or \n individually to separate HTTP headers instead of the standard "\r\n"; from Charles Kerr.
|
||||||
|
3
event.c
3
event.c
@ -695,6 +695,9 @@ event_base_loop(struct event_base *base, int flags)
|
|||||||
struct timeval *tv_p;
|
struct timeval *tv_p;
|
||||||
int res, done;
|
int res, done;
|
||||||
|
|
||||||
|
/* clear time cache */
|
||||||
|
base->tv_cache.tv_sec = 0;
|
||||||
|
|
||||||
if (&base->sig.ev_signal_added)
|
if (&base->sig.ev_signal_added)
|
||||||
evsignal_base = base;
|
evsignal_base = base;
|
||||||
done = 0;
|
done = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user