]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: select: fix excess number of dead/skip reported
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Jul 2021 11:55:36 +0000 (13:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Jul 2021 11:55:36 +0000 (13:55 +0200)
commitfcc5281513eabe0d7790d98e50ee8cd9be216c1b
tree1b42cf2a86b7df01ba42ab7f63af15585659d53c
parentc37ccd70b4f622a4148cb63d3b584357b02cda47
BUG/MINOR: select: fix excess number of dead/skip reported

In 1.8, commit ab62f5195 ("MINOR: polling: Use fd_update_events to update
events seen for a fd") updated the pollers to rely on fd_update_events(),
but the modification delayed the test of presence of the FD in the report,
resulting in owner/thread_mask and possibly event updates being performed
for each FD appearing in a block of 32 FDs around an active one. This
caused the request rate to be ~3 times lower with select() than poll()
under 6 threads.

This can be backported as far as 1.8.
src/ev_select.c