Skip to content

Commit df68c28

Browse files
author
lingtaokong
committed
Keep the connection alive when a PING frame is received from the gQUIC peer.
1 parent 7e0c302 commit df68c28

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/liblsquic/lsquic_full_conn.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,9 +1530,13 @@ process_ping_frame (struct full_conn *conn, lsquic_packet_in_t *packet_in,
15301530
* return the length of this frame.
15311531
*/
15321532
EV_LOG_PING_FRAME_IN(LSQUIC_LOG_CONN_ID);
1533-
LSQ_DEBUG("received PING");
15341533
if (conn->fc_flags & FC_SERVER)
15351534
log_conn_flow_control(conn);
1535+
1536+
LSQ_DEBUG("received PING frame, update last progress to %"PRIu64,
1537+
conn->fc_pub.last_tick);
1538+
conn->fc_pub.last_prog = conn->fc_pub.last_tick;
1539+
15361540
return 1;
15371541
}
15381542

0 commit comments

Comments
 (0)