Skip to content

Commit

Permalink
fix(http3): handle streamStateSendAndReceiveClosed in onStreamStateCh…
Browse files Browse the repository at this point in the history
…ange

Signed-off-by: George MacRorie <[email protected]>
(cherry picked from commit 7fcca6a)
  • Loading branch information
GeorgeMac authored and tobyxdd committed May 15, 2024
1 parent 51a0843 commit 5e9e635
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http3/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ func (c *connection) onStreamStateChange(id quic.StreamID, state streamState, e
isDone = d.SetReceiveError(e)
case streamStateSendClosed:
isDone = d.SetSendError(e)
case streamStateSendAndReceiveClosed:
isDone = true
default:
return
}
Expand Down

0 comments on commit 5e9e635

Please sign in to comment.