]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: add a new function h2s_alert() to call the data layer
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Dec 2018 16:36:48 +0000 (17:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Dec 2018 17:13:48 +0000 (18:13 +0100)
commit8b2757c3398702b6fba868da33141def9fcba85f
tree4b89cc736701fe4ca15716d83727d9fb07494f0c
parent7e094451d0caffceb6b69351d33cdd76952ddc95
MINOR: mux-h2: add a new function h2s_alert() to call the data layer

In order to report an error to the data layer, we have different ways
depending on the situation. At a lot of places it's open-coded and not
always correct. Let's create a new function h2s_alert() to handle this
task. It tries to wake on recv() first, then on send(), then using
wake().
src/mux_h2.c