Fix spam of ping network frames.

After some time without activity (only keepalive), the ping frame was send in loop.
This commit is contained in:
Mickael Cerisier 2023-09-20 14:26:47 +02:00
parent 8890b98bb0
commit b3777000c5

View file

@ -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;