]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-quic: implement shutw
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 21 Dec 2022 09:21:58 +0000 (10:21 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 22 Dec 2022 15:22:39 +0000 (16:22 +0100)
commita473f196f183830295ca6971fdc989af084bdda9
treee3fa6b9f75acc3466ef5544ec67e94baeeba41a3
parentbe6a87309662c3942352ac22af16376968b5c50b
MEDIUM: mux-quic: implement shutw

Implement mux_ops shutw operation for QUIC mux. A RESET_STREAM is
emitted unless the stream is already closed due to all data or
RESET_STREAM already transmitted.

This operation is notably useful when upper stream layer wants to close
the connection early due to an error.

This was tested by using a HTTP server which listens with PROXY protocol
support. The corresponding server line on haproxy configuration
deliberately not specify send-proxy. This causes the server to close
abruptly the connection. Without this patch, nothing was done on the QUIC
stream which was kept open until the whole connection is closed. Now, a
proper RESET_STREAM is emitted to report the error.

This should be backported up to 2.7.
include/haproxy/qmux_trace.h
src/mux_quic.c