fix
This commit is contained in:
parent
9c81a7c2be
commit
1ad809aa94
@ -233,12 +233,12 @@ handle_event(info, {quic, send_shutdown_complete, Stream, _Props}, _StateName, S
|
|||||||
|
|
||||||
%% 处理quicer相关的信息, 需要转换成内部能够识别的frame消息
|
%% 处理quicer相关的信息, 需要转换成内部能够识别的frame消息
|
||||||
handle_event(info, {quic, Data, Stream, _Props}, _StateName, State = #state{stream = Stream, buf = Buf, max_packet_size = MaxPacketSize}) ->
|
handle_event(info, {quic, Data, Stream, _Props}, _StateName, State = #state{stream = Stream, buf = Buf, max_packet_size = MaxPacketSize}) ->
|
||||||
logger:debug("[sdlan_quic_channel] get message: ~p", [Data]),
|
|
||||||
case decode_frames(<<Buf/binary, Data/binary>>, MaxPacketSize) of
|
case decode_frames(<<Buf/binary, Data/binary>>, MaxPacketSize) of
|
||||||
{error, Reason} ->
|
{error, Reason} ->
|
||||||
{stop, Reason, State};
|
{stop, Reason, State};
|
||||||
{ok, NBuf, Frames} ->
|
{ok, NBuf, Frames} ->
|
||||||
Actions = [{next_event, info, {frame, Frame}} || Frame <- Frames],
|
Actions = [{next_event, info, {frame, Frame}} || Frame <- Frames],
|
||||||
|
logger:debug("[sdlan_quic_channel] get frames: ~p", [Frames]),
|
||||||
{keep_state, State#state{buf = NBuf}, Actions}
|
{keep_state, State#state{buf = NBuf}, Actions}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user