This commit is contained in:
anlicheng 2026-02-19 00:18:34 +08:00
parent a6d140afaa
commit 7c74e07c51
2 changed files with 2 additions and 1 deletions

View File

@ -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} ->
%% %%

View File

@ -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),