]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream-int: unconditionally call si_chk_rcv() in update and notify
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Nov 2018 06:46:57 +0000 (07:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 20:41:49 +0000 (21:41 +0100)
commit47baeb85d4b029efcceab6623452cc744d72dbcd
tree509bc31a86dfd4d01bb6e1e3379972fc048368de
parentabb5d4202ffa4bc272bc761cf5d3919a45194155
MEDIUM: stream-int: unconditionally call si_chk_rcv() in update and notify

For a long time, stream_int_update() and stream_int_notify() used to only
conditionally call si_chk_rcv() based on state change detection. This
detection is not reliable and quite complex. With the new blocked flags
that si_chk_rcv() checks, it's much more reliable to always call the
function to take into account recent changes,and let it decide if it needs
to wake something up or not.

This also removes the calls to si_chk_rcv() that were performed in
si_update_both() since these ones are systematically performed in
stream_int_update() after updating the Rx flags.
src/stream_interface.c