]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: kqueue: When adding new events, provide an output to get errors.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 16 Apr 2018 11:24:48 +0000 (13:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Apr 2018 15:46:56 +0000 (17:46 +0200)
commitebaba754297f39b86959fbdc13f66e4534aadeae
tree97f0a97c05105ca50e37dd12197acd1d15b08289
parentdaf4cd209a945831d0b0b8546f348f08e581a222
BUG/MEDIUM: kqueue: When adding new events, provide an output to get errors.

When adding new events using kevent(), if there's an error, because we're
trying to delete an event that wasn't there, or because the fd has already
been closed, kevent() will either add an event in the eventlist array if
there's enough room for it, and keep on handling other events, or stop and
return -1.
We want it to process all the events, so give it a large-enough array to
store any error.

Special thanks to PiBa-NL for diagnosing the root cause of this bug.

This should be backported to 1.8.
src/ev_kqueue.c