From b81a3fb15ff0e808074db7c601a068bb18e5c0c7 Mon Sep 17 00:00:00 2001 From: Mickael Cerisier <129371965+mickael-cerisier@users.noreply.github.com> Date: Sat, 7 Oct 2023 16:04:01 +0200 Subject: [PATCH] Fix spam of ping network frames. (#478) After some time without activity (only keepalive), the ping frame was send in loop. --- src/liblsquic/lsquic_full_conn_ietf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liblsquic/lsquic_full_conn_ietf.c b/src/liblsquic/lsquic_full_conn_ietf.c index c73d761f1..f9c76ffb2 100644 --- a/src/liblsquic/lsquic_full_conn_ietf.c +++ b/src/liblsquic/lsquic_full_conn_ietf.c @@ -7934,7 +7934,7 @@ ietf_full_conn_ci_packet_sent (struct lsquic_conn *lconn, struct ietf_full_conn *const conn = (struct ietf_full_conn *) lconn; int s; - if (packet_out->po_frame_types & IQUIC_FRAME_RETX_MASK) + if (packet_out->po_frame_types & (IQUIC_FRAME_RETX_MASK | QUIC_FTBIT_ACK)) conn->ifc_n_cons_unretx = 0; else ++conn->ifc_n_cons_unretx;