commit | 8b2757c3398702b6fba868da33141def9fcba85f | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Dec 19 17:36:48 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Dec 19 18:13:48 2018 +0100 |
tree | 4b89cc736701fe4ca15716d83727d9fb07494f0c | |
parent | 7e094451d0caffceb6b69351d33cdd76952ddc95 [diff] |
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().