]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: refactor application send
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 17 Aug 2022 08:08:16 +0000 (10:08 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 17 Aug 2022 09:05:49 +0000 (11:05 +0200)
commitcc130473646f5b86be879fd78e0be5581c784ddc
tree2a6a35c2c958fd4ed24bbbde5884ec105eb78071
parent3baab744e7bdfa0f53d1c474ac337eabdbd9b265
MINOR: quic: refactor application send

Adjust qc_send_app_pkts function : remove <old_data> arg and provide a
new wrapper function qc_send_app_probing() which should be used instead
when probing with old data.

This simplifies the interface of the default function, most notably for
the MUX which does not interfer with retransmission.
QUIC_FL_CONN_RETRANS_OLD_DATA flag is set/unset directly in the wrapper
qc_send_app_probing().

At the same time, function documentation has been updated to clarified
arguments and return values.

This commit will be useful for the next patch to differentiate MUX and
retransmission send context. As a consequence, the current patch should
be backported wherever the next one will be.
include/haproxy/xprt_quic.h
src/mux_quic.c
src/xprt_quic.c