]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Remove call to qc_rm_hp_pkts() from I/O callback
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 26 Jun 2023 13:11:04 +0000 (15:11 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 30 Jun 2023 14:20:55 +0000 (16:20 +0200)
commit2d6a234af572e4c6cf610ae0f96704e3d1d8e45c
tree2a67235183457110442319fa14be7ddbce7210ec
parent081f5002eb8380281673c06e6962c6bbccd0bc9a
MINOR: quic: Remove call to qc_rm_hp_pkts() from I/O callback

quic_conn_io_cb() is the I/O handler callback used during the handshakes.
quic_conn_app_io_cb() is used after the handshakes. Both call qc_rm_hp_pkts()
before parsing the RX packets ordered by their packet numbers calling qc_treat_rx_pkts().
qc_rm_hp_pkts() is there to remove the header protection to reveal the packet
numbers, then reorder the packets by their packet numbers.

qc_rm_hp_pkts() may be safely directly called by qc_treat_rx_pkts(), which is
itself called by the I/O handlers.
src/quic_conn.c