remove debug
This commit is contained in:
parent
ace1b832f1
commit
9602609347
@ -144,7 +144,7 @@ handle_event(info, {quic, Data, Stream, _Props}, _StateName, State = #state{stre
|
||||
{stop, Reason, State};
|
||||
{ok, NBuf, Frames} ->
|
||||
Actions = [{next_event, internal, {frame, Frame}} || Frame <- Frames],
|
||||
logger:debug("[sdlan_quic_channel] get frames: ~p", [Frames]),
|
||||
%logger:debug("[sdlan_quic_channel] get frames: ~p", [Frames]),
|
||||
{keep_state, State#state{buf = NBuf}, Actions}
|
||||
end;
|
||||
|
||||
@ -296,7 +296,6 @@ handle_event(internal, {frame, <<?PACKET_POLICY_REQUEST, Body/binary>>}, registe
|
||||
|
||||
handle_event(internal, {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}};
|
||||
|
||||
handle_event(info, {timeout, _, ping_ticker}, _, State = #state{client_id = ClientId, ping_counter = PingCounter}) ->
|
||||
|
||||
@ -105,8 +105,8 @@ handle_info({udp, Sock, Ip, Port, <<?PACKET_STUN_REQUEST:8, Body/binary>>}, Stat
|
||||
StunReply = sdlan_pb:encode_msg(#sdl_stun_reply{
|
||||
cookie = Cookie
|
||||
}),
|
||||
ok = gen_udp:send(Sock, Ip, Port, <<?PACKET_STUN_REPLY:8, StunReply/binary>>),
|
||||
logger:debug("[sdlan_stun] stun_request network_id: ~p, client_id: ~p, hole: ~p", [NetworkId, ClientId, {Ip, Port}])
|
||||
%logger:debug("[sdlan_stun] stun_request network_id: ~p, client_id: ~p, hole: ~p", [NetworkId, ClientId, {Ip, Port}])
|
||||
ok = gen_udp:send(Sock, Ip, Port, <<?PACKET_STUN_REPLY:8, StunReply/binary>>)
|
||||
end,
|
||||
{noreply, State};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user