]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h2: Introduce flags to deal with connection read/write errors
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Oct 2022 17:12:40 +0000 (19:12 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Nov 2022 13:33:15 +0000 (14:33 +0100)
commitff7925dce01ef1f35fd974a45ac78b6f613966a6
tree2cd91697ae6347aed246d79f38f8170728b7f4ae
parentb65af26e19a549792ec01608fbcf54b59656f92a
MEDIUM: mux-h2: Introduce flags to deal with connection read/write errors

Similarly to the H1 multiplexer, H2_CF_ERR_PENDING is now used to report an
error when we try to send data and H2_CF_ERROR to report an error when we
try to read data. In other funcions, we rely on these flags instead of
connection ones. Only H2_CF_ERROR is considered as a final error.
H2_CF_ERR_PENDING does not block receive attempt.

In addition, we rely on H2_CF_RCVD_SHUT flag to test if a read0 was received
or not.
include/haproxy/mux_h2-t.h
src/mux_h2.c