fix ping
This commit is contained in:
parent
890f203609
commit
a1e768695b
@ -215,7 +215,7 @@ handle_event(info, {frame, <<?PACKET_POLICY_REQUEST, Body/binary>>}, registered,
|
||||
quic_send(Stream, <<?PACKET_POLICY_REPLY, PolicyResponsePkt/binary>>)
|
||||
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>>),
|
||||
logger:debug("[sdlan_quic_channel] get ping"),
|
||||
{keep_state, State#state{ping_counter = PingCounter + 1}};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user