fix
This commit is contained in:
parent
a6d140afaa
commit
7c74e07c51
@ -95,6 +95,7 @@ callback_mode() ->
|
||||
%% process message, this function is called.
|
||||
|
||||
handle_event(internal, do_init, initializing, State=#state{conn = Conn, max_packet_size = MaxPacketSize, heartbeat_sec = HeartbeatSec}) ->
|
||||
logger:debug("[sdlan_quic_channel] call do_init of conn: ~p", [Conn]),
|
||||
case quicer:accept_stream(Conn, #{active => true}) of
|
||||
{ok, Stream} ->
|
||||
%% 发送欢迎消息
|
||||
|
||||
@ -45,9 +45,9 @@ loop_accept(L, Limits) ->
|
||||
logger:debug("[sdlan_quic_server] accept a new connection: ~p", [Conn]),
|
||||
case quicer:handshake(Conn) of
|
||||
{ok, NConn} ->
|
||||
logger:debug("[sdlan_quic_server] conn: ~p, handshake success", [NConn]),
|
||||
case sdlan_quic_channel_sup:start_channel(NConn, Limits) of
|
||||
{ok, ChannelPid} ->
|
||||
logger:debug("[sdlan_quic_server] conn: ~p, handshake success, channel pid: ~p", [NConn, ChannelPid]),
|
||||
quicer:controlling_process(NConn, ChannelPid);
|
||||
Error ->
|
||||
quicer:close_connection(NConn),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user