mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
[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:
parent
58094f2fd9
commit
258696f5d8
@ -117,6 +117,7 @@ REGPRM2 static void kqueue_poll(struct poller *p, int wait_time)
|
|||||||
kev, // struct kevent *eventlist
|
kev, // struct kevent *eventlist
|
||||||
maxfd, // int nevents
|
maxfd, // int nevents
|
||||||
to_ptr); // const struct timespec *timeout
|
to_ptr); // const struct timespec *timeout
|
||||||
|
tv_now(&now);
|
||||||
|
|
||||||
for (count = 0; count < status; count++) {
|
for (count = 0; count < status; count++) {
|
||||||
fd = kev[count].ident;
|
fd = kev[count].ident;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user