]> git.kaiwu.me - haproxy.git/commit
MINOR: h3: abort read on unknown uni stream
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 24 May 2022 15:22:07 +0000 (17:22 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 25 May 2022 13:41:25 +0000 (15:41 +0200)
commit849b24f15bf3de6ba03290688023330c0de14578
treeed2c69d91dad58811a61246ae590ec6e55fb8d93
parent9cc475182c633b7bb38df05dc1a65d731c25994f
MINOR: h3: abort read on unknown uni stream

As specified by HTTP/3 draft, an unknown unidirectional stream can be
aborted. To do this, use a new flag QC_SF_READ_ABORTED. When the MUX
detects this flag, QCS instance is automatically freed.

Previously, such streams were instead automatically drained. By aborting
them, we economize some useless memcpy instruction. On future data
reception, QCS instance is not found in the tree and considered as
already closed. The frame payload is thus deleted without copying it.
include/haproxy/mux_quic-t.h
src/h3.c
src/mux_quic.c