]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: polling: centralize polled events processing
authorWilly Tarreau <w@1wt.eu>
Sat, 25 Jan 2014 08:58:06 +0000 (09:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 Jan 2014 23:42:32 +0000 (00:42 +0100)
commite85254559457d11809c9f6ccaf9e5ca38a84e74e
treef30926ec34c1a99cacb708ccf431e992f481ace6
parent6c11bd2f89eb043fd493d77b784198e90e0a01b2
MEDIUM: polling: centralize polled events processing

Currently, each poll loop handles the polled events the same way,
resulting in a lot of duplicated, complex code. Additionally, epoll
was the only one to handle newly created FDs immediately.

So instead, let's move that code to fd.c in a new function dedicated
to this task : fd_process_polled_events(). All pollers now use this
function.
include/proto/fd.h
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/fd.c