This commit is contained in:
anlicheng 2026-02-24 16:47:07 +08:00
parent 890f203609
commit a1e768695b

View File

@ -215,7 +215,7 @@ handle_event(info, {frame, <<?PACKET_POLICY_REQUEST, Body/binary>>}, registered,
quic_send(Stream, <<?PACKET_POLICY_REPLY, PolicyResponsePkt/binary>>) quic_send(Stream, <<?PACKET_POLICY_REPLY, PolicyResponsePkt/binary>>)
end; end;
handle_event(info, {frame, <<?PACKET_PING>>}, registered, State = #state{stream = Stream, ping_counter = PingCounter}) -> handle_event(info, {frame, <<?PACKET_PING>>}, _StateName, State = #state{stream = Stream, ping_counter = PingCounter}) ->
quic_send(Stream, <<?PACKET_PONG>>), quic_send(Stream, <<?PACKET_PONG>>),
logger:debug("[sdlan_quic_channel] get ping"), logger:debug("[sdlan_quic_channel] get ping"),
{keep_state, State#state{ping_counter = PingCounter + 1}}; {keep_state, State#state{ping_counter = PingCounter + 1}};