]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: poll: more accurately compute the new maxfd in the loop
authorWilly Tarreau <w@1wt.eu>
Mon, 29 Jan 2018 14:56:24 +0000 (15:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Jan 2018 15:00:28 +0000 (16:00 +0100)
commit2d3c2db8683eac3572a5c21fcbb08d656e66f1ea
treeeed34b61117f080596f08c4eb88c38274fac7105
parentf2b5c99b4c83346d505fc58e78d677000b04c7d4
MINOR: poll: more accurately compute the new maxfd in the loop

Last commit 173d995 ("MEDIUM: polling: start to move maxfd computation
to the pollers") moved the maxfd computation to the polling loop, but
it still adds an entry when removing an fd, forcing the next loop to
seek from further away than necessary. Let's only update the max when
actually adding an entry.
src/ev_poll.c