fix quic channel
This commit is contained in:
parent
d72a2221e5
commit
63706d9cd8
@ -99,6 +99,10 @@ handle_event(internal, do_init, initializing, State=#state{conn = Conn}) ->
|
||||
{ok, _} = quicer:async_accept_stream(Conn, #{active => true}),
|
||||
{next_state, waiting_stream, State};
|
||||
|
||||
handle_event(info, {quic, dgram_state_changed, Conn, Opts = #{dgram_send_enabled := true}}, waiting_stream, State=#state{conn = Conn}) ->
|
||||
logger:debug("[sdlan_quic_channel] dgram_state_changed, opts: ~p", [Opts]),
|
||||
{keep_state, State};
|
||||
|
||||
handle_event(info, {quic, new_stream, Stream, Opts}, waiting_stream, State=#state{max_packet_size = MaxPacketSize, heartbeat_sec = HeartbeatSec}) ->
|
||||
logger:debug("[sdlan_quic_channel] call new_stream: ~p, opts: ~p", [Stream, Opts]),
|
||||
%% 发送欢迎消息
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user