[MAJOR] missing tv_now in kqueue_poll() blocking timeouts

a missing call to tv_now(&now) just after kevent() prevented
the timeouts from expiring.
This commit is contained in:
Willy Tarreau 2007-04-10 02:31:54 +02:00
parent 58094f2fd9
commit 258696f5d8

View File

@ -117,6 +117,7 @@ REGPRM2 static void kqueue_poll(struct poller *p, int wait_time)
kev, // struct kevent *eventlist
maxfd, // int nevents
to_ptr); // const struct timespec *timeout
tv_now(&now);
for (count = 0; count < status; count++) {
fd = kev[count].ident;