Skip to content

Commit

Permalink
Merge pull request #12 from psalin/fix_rst_stream
Browse files Browse the repository at this point in the history
Fix RST_STREAM when stream closing
  • Loading branch information
tsloughter authored May 24, 2022
2 parents 3ee4eb7 + ba9c97f commit 0d062a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/h2_stream.erl
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ send_trailers(State, Trailers, Stream=#stream_state{connection=Pid,
h2_connection:actually_send_trailers(Pid, StreamId, Trailers),
case State of
half_closed_remote ->
{next_state, closed, Stream};
{next_state, closed, Stream, 0};
open ->
{next_state, half_closed_local, Stream}
end.
Expand Down

0 comments on commit 0d062a4

Please sign in to comment.