]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MAJOR] missing tv_now in kqueue_poll() blocking timeouts
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Apr 2007 00:31:54 +0000 (02:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Apr 2007 00:31:54 +0000 (02:31 +0200)
a missing call to tv_now(&now) just after kevent() prevented
the timeouts from expiring.

src/ev_kqueue.c

index 44afefe1055fcb939ac7e29fa2856f9147a6d290..dd990e47067b4511dc1b6644950300fa7c0bf262 100644 (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;