MINOR: quic: Make qc_dgrams_retransmit() return a status.
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 10 Feb 2023 13:46:39 +0000 (14:46 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Feb 2023 16:36:30 +0000 (17:36 +0100)
commite1738df4688b0b44aa62583f311bb1f81e151d9f
tree507018240abf822cd8b2684345d62ff0c0f0581d
parent2f531116edef5bbc30f6e9236d48887e85ea9cca
MINOR: quic: Make qc_dgrams_retransmit() return a status.

This is very helpful during retranmission when receiving ICMP port unreachable
errors after the peer has left. This is the unique case at prevent where
qc_send_hdshk_pkts() or qc_send_app_probing() may fail (when they call
qc_send_ppkts() which fails with ECONNREFUSED as errno).

Also make the callers qc_dgrams_retransmit() stop their packet process. This
is the case of quic_conn_app_io_cb() and quic_conn_io_cb().

This modifications stops definitively any packet processing when receiving
ICMP port unreachable errors.

Must be backported to 2.7.
src/quic_conn.c