Fix spam of ping network frames. (#478)

After some time without activity (only keepalive), the ping frame was send in loop.
This commit is contained in:
Mickael Cerisier 2023-10-07 16:04:01 +02:00 committed by GitHub
parent 95bc8f9663
commit b81a3fb15f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;