commit | 2d3c2db8683eac3572a5c21fcbb08d656e66f1ea | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Jan 29 15:56:24 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Jan 29 16:00:28 2018 +0100 |
tree | eed34b61117f080596f08c4eb88c38274fac7105 | |
parent | f2b5c99b4c83346d505fc58e78d677000b04c7d4 [diff] |
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.