]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: fd: mark the FD as ready when it's inserted
authorWilly Tarreau <w@1wt.eu>
Thu, 5 Sep 2019 14:30:39 +0000 (16:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Sep 2019 15:50:36 +0000 (17:50 +0200)
commit4ac9d064d2b897b8cd420e0d623581ca72968e43
tree7960de70b8c293ce3ee5a237002b40e56e03bdc0
parent5762a0db0a606cab09fbf912232ee927f99f4c2d
MEDIUM: fd: mark the FD as ready when it's inserted

Given that all our I/Os are now directed from top to bottom and not the
opposite way around, and the FD cache was removed, it doesn't make sense
anymore to create FDs that are marked not ready since this would prevent
the first accesses unless the caller explicitly does an fd_may_recv()
which is not expected to be its job (which conn_ctrl_init() has to do
by the way). Let's move this into fd_insert() instead, and have a single
atomic operation for both directions via fd_may_both().
include/proto/connection.h
include/proto/fd.h