fix
This commit is contained in:
parent
c5a0c25b8c
commit
73d86101ca
@ -94,8 +94,13 @@ callback_mode() ->
|
|||||||
%% gen_statem receives an event from call/2, cast/2, or as a normal
|
%% gen_statem receives an event from call/2, cast/2, or as a normal
|
||||||
%% 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}) ->
|
||||||
logger:debug("[sdlan_quic_channel] call do_init of conn: ~p", [Conn]),
|
logger:debug("[sdlan_quic_channel] call do_init of conn: ~p", [Conn]),
|
||||||
|
{ok, _} = quicer:async_accept_stream(Conn, #{active => true}),
|
||||||
|
{next_state, waiting_stream, State};
|
||||||
|
|
||||||
|
handle_event(info, Info, waiting_stream, State=#state{conn = Conn, max_packet_size = MaxPacketSize, heartbeat_sec = HeartbeatSec}) ->
|
||||||
|
logger:debug("[sdlan_quic_channel] call do_init of info: ~p", [Info]),
|
||||||
case quicer:accept_stream(Conn, #{active => true}) of
|
case quicer:accept_stream(Conn, #{active => true}) of
|
||||||
{ok, Stream} ->
|
{ok, Stream} ->
|
||||||
%% 发送欢迎消息
|
%% 发送欢迎消息
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user