feat(quic): stream use active_n 10
This commit is contained in:
parent
0173121a30
commit
71d3148544
|
@ -182,7 +182,8 @@ handle_stream_data(
|
||||||
%% {ok, State}
|
%% {ok, State}
|
||||||
%% end.
|
%% end.
|
||||||
|
|
||||||
passive(_Stream, undefined, S) ->
|
passive(Stream, undefined, S) ->
|
||||||
|
quicer:setopt(Stream, active, 10),
|
||||||
{ok, S}.
|
{ok, S}.
|
||||||
|
|
||||||
stream_closed(
|
stream_closed(
|
||||||
|
|
|
@ -270,8 +270,9 @@ start_completed(_Stream, #{status := Other} = Prop, S) ->
|
||||||
%% {stop, unimpl}.
|
%% {stop, unimpl}.
|
||||||
|
|
||||||
-spec passive(stream_handle(), undefined, cb_data()) -> cb_ret().
|
-spec passive(stream_handle(), undefined, cb_data()) -> cb_ret().
|
||||||
passive(_Stream, undefined, _S) ->
|
passive(Stream, undefined, S) ->
|
||||||
{stop, unimpl}.
|
quicer:setopt(Stream, active, 10),
|
||||||
|
{ok, S}.
|
||||||
|
|
||||||
-spec stream_closed(stream_handle(), quicer:stream_closed_props(), cb_data()) -> cb_ret().
|
-spec stream_closed(stream_handle(), quicer:stream_closed_props(), cb_data()) -> cb_ret().
|
||||||
stream_closed(
|
stream_closed(
|
||||||
|
|
Loading…
Reference in New Issue