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