From: Willy Tarreau Date: Tue, 10 Apr 2007 00:31:54 +0000 (+0200) Subject: [MAJOR] missing tv_now in kqueue_poll() blocking timeouts X-Git-Tag: v1.3.9~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=258696f5d8160b149e8bccd53ee57fd756c1e1e0;p=thirdparty%2Fhaproxy.git [MAJOR] missing tv_now in kqueue_poll() blocking timeouts a missing call to tv_now(&now) just after kevent() prevented the timeouts from expiring. --- diff --git a/src/ev_kqueue.c b/src/ev_kqueue.c index 44afefe105..dd990e4706 100644 --- a/src/ev_kqueue.c +++ b/src/ev_kqueue.c @@ -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;