Skip to content

Commit

Permalink
Fix spam of ping network frames. (#478)
Browse files Browse the repository at this point in the history
After some time without activity (only keepalive), the ping frame was send in loop.
  • Loading branch information
mickael-cerisier authored Oct 7, 2023
1 parent 95bc8f9 commit b81a3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liblsquic/lsquic_full_conn_ietf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b81a3fb

Please sign in to comment.