]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: raw_sock: make use of CO_FL_WILL_UPDATE
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Oct 2017 07:30:13 +0000 (09:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Oct 2017 13:52:41 +0000 (15:52 +0200)
commit256b9c59932b21063e21dd9aab62d6052b8a42b9
treeeb727ea5fe4efecacdd1776cd37e7c47b7f74ea3
parent7b271b214fa5a750d6c93d429b72e7004b6168eb
MINOR: raw_sock: make use of CO_FL_WILL_UPDATE

Now when raw_sock_{to,from}_{pipe,buf} are called, if the connection
doesn't feature CO_FL_WILL_UPDATE, they will first retrieve the updated
flags using conn_refresh_polling_flags() before changing any flag, then
call conn_cond_update_sock_polling() before leaving, to commit such
changes. Note that the only real call to one of the __conn_* functions
is in fact in conn_sock_read0() which is called from here.
src/raw_sock.c