]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h1: merge recv_wait and send_wait
authorWilly Tarreau <w@1wt.eu>
Thu, 16 Jan 2020 10:03:19 +0000 (11:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Jan 2020 17:30:36 +0000 (18:30 +0100)
commit1b0d4d19fc9ad130fe27f2f989a4b7b8ee97a5fb
treefc2af9ed3ba15a35b86a6d3ed70a220859a43ad6
parent113d52bfb428b4aaefb1e3e647d41ff461352b41
MEDIUM: mux-h1: merge recv_wait and send_wait

This is the same principle as previous commit, but for the H1 mux this
time. The checks in the subscribe()/unsubscribe() calls were factored
and some BUG_ON() were added to detect unexpected cases.
h1_wake_for_recv() and h1_wake_for_send() needed to be refined to
consider the current subscription before deciding to wake up.
src/mux_h1.c