]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: refactor qc_new_conn() prototype
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 12 Nov 2025 10:35:25 +0000 (11:35 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 17 Nov 2025 09:13:40 +0000 (10:13 +0100)
commit133f1004676a397b156b307b9563bfe825d73466
tree9179da505661479e228c97ec74a1d7f201322e12
parent49edaca513075d070c2b4941f76ae34ed69a1bd2
MINOR: quic: refactor qc_new_conn() prototype

The objective of this patch is to streamline qc_new_conn() usage so that
it is similar for frontend and backend sides.

Previously, several parameters were set only for frontend connections.
These arguments are replaced by a single quic_rx_packet argument, which
represents the INITIAL packet triggering the connection allocation on
the server side. For a QUIC client endpoint, it remains NULL. This usage
is consider more explicit.

As a minor change, <target> is moved as the first argument of the
function. This is considered useful as this argument determines whether
the connection is a frontend or backend entry.

Along with these changes, qc_new_conn() documentation has been reworded
so that it is now up-to-date with the newest usage.
include/haproxy/quic_conn.h
src/quic_conn.c
src/quic_rx.c
src/xprt_quic.c