]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-quic/h3: send SETTINGS as soon as transport is ready
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 24 Jan 2023 16:35:37 +0000 (17:35 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 25 Jan 2023 15:01:55 +0000 (16:01 +0100)
commit71fd03632fff43f11cebc6ff4974723c9dc81c67
tree308c542f0e3d8f2fd0b36ddfea961038c4954e29
parent9a0f8ba837aaa5ba8acfa21354b71818cdb87901
MINOR: mux-quic/h3: send SETTINGS as soon as transport is ready

As specified by HTTP3 RFC, SETTINGS frame should be sent as soon as
possible. Before this patch, this was only done on the first qc_send()
invocation. This delay significantly SETTINGS emission until the first
H3 response is ready to be transferred.

This patch fixes this by ensuring SETTINGS is emitted when MUX-QUIC is
being setup.

As a side point, return value of finalize operation is checked. This
means that an error during SETTINGS emission will cause the connection
init to fail.

This should be backported up to 2.7.
include/haproxy/mux_quic-t.h
src/h3.c
src/mux_quic.c