]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: raw-sock: remove obsolete calls to fd_{cant,cond,done}_{send,recv}
authorWilly Tarreau <w@1wt.eu>
Tue, 28 Jan 2020 17:51:57 +0000 (18:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Jan 2020 18:06:41 +0000 (19:06 +0100)
commit1113116b4afc05d7e555925cbe7fa3ab2f08f059
tree8262a51a54a4e8d020c97b72bb37ae4b1d174536
parent882093249a5e2261040f1107a74b6d2581a25932
MEDIUM: raw-sock: remove obsolete calls to fd_{cant,cond,done}_{send,recv}

Given that raw_sock's functions solely act on connections and that all its
callers properly use subscribe() when they want to receive/send more, there
is no more reason for calling fd_{cant,cond,done}_{send,recv} anymore as
this call is immediately overridden by the subscribe call. It's also worth
noting that the purpose of fd_cond_recv() whose purpose was to speculatively
enable reading in the FD cache if the FD was active but not yet polled was
made to save on expensive epoll_ctl() calls and was implicitly covered more
cleanly by recent commit 5d7dcc2a8e ("OPTIM: epoll: always poll for recv if
neither active nor ready").

No change on the number of calls to epoll_ctl() was noticed consecutive to
this change.
src/raw_sock.c