Skip to content

Commit

Permalink
fix: apply default stream start flag ?QUIC_STREAM_START_FLAG_SHUTDOWN…
Browse files Browse the repository at this point in the history
…_ON_FAIL
  • Loading branch information
qzhuyan committed May 21, 2024
1 parent 4d6afa2 commit 005cb38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/quicer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ stats_map(_) ->
undefined.

default_stream_opts() ->
#{active => true}.
#{active => true, start_flag => ?QUIC_STREAM_START_FLAG_SHUTDOWN_ON_FAIL}.

default_conn_opts() ->
#{
Expand Down
2 changes: 1 addition & 1 deletion test/quicer_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ tc_stream_open_flag_unidirectional(Config) ->
receive
{quic, <<"ping1">>, Stm, _} ->
ct:fail("unidirectional stream should not receive any");
{quic, stream_closed, Stm, #{is_conn_shutdown := true, is_app_closing := false}} ->
{quic, stream_closed, Stm, #{is_conn_shutdown := _, is_app_closing := false}} ->
ct:pal("stream is closed due to connecion idle")
end,
?assert(is_integer(Rid)),
Expand Down

0 comments on commit 005cb38

Please sign in to comment.