Skip to content

Commit 406c2bf

Browse files
arjan-balPranjali-2501
authored andcommitted
transport: release mutex before returning on expired deadlines in server streams (#8451)
1 parent 20ef77a commit 406c2bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/transport/http2_server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ func (t *http2Server) operateHeaders(ctx context.Context, frame *http2.MetaHeade
602602
}
603603

604604
if s.ctx.Err() != nil {
605+
t.mu.Unlock()
605606
// Early abort in case the timeout was zero or so low it already fired.
606607
t.controlBuf.put(&earlyAbortStream{
607608
httpStatus: http.StatusOK,

0 commit comments

Comments
 (0)