]> git.kaiwu.me - haproxy.git/commit
OPTIM: epoll: current fd does not count as a new one
authorWilly Tarreau <w@1wt.eu>
Thu, 13 Dec 2012 23:02:33 +0000 (00:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Dec 2012 23:13:23 +0000 (00:13 +0100)
commitfb5470d14488442686ffbf260a06a47892919c5c
tree2eaf140aacf7f4468fe8cc389c9b562bba9ae251
parent6320c3cb468ce5b7f5013ef048b53ee8c744a2d5
OPTIM: epoll: current fd does not count as a new one

The epoll loop checks for newly appeared FDs in order to process them early
if they're accepted sockets. Since the introduction of the fd_ev_set()
calls before the iocb(), the current FD is always in the update list,
and we don't want to check it again, so we must assign the old_updt
index just before calling the I/O handler.
src/ev_epoll.c