]> git.feebdaed.xyz Git - 0xmirror/grpc-go.git/commitdiff
transport: release mutex before returning on expired deadlines in server streams...
authorArjan Singh Bal <46515553+arjan-bal@users.noreply.github.com>
Wed, 16 Jul 2025 05:16:15 +0000 (10:46 +0530)
committerGitHub <noreply@github.com>
Wed, 16 Jul 2025 05:16:15 +0000 (10:46 +0530)
internal/transport/http2_server.go

index 4cf5b21ef16a331b58a874103f39afe8864e66b6..9f725e15a812886297d750425bda96fdd8a3de00 100644 (file)
@@ -602,6 +602,7 @@ func (t *http2Server) operateHeaders(ctx context.Context, frame *http2.MetaHeade
        }
 
        if s.ctx.Err() != nil {
+               t.mu.Unlock()
                // Early abort in case the timeout was zero or so low it already fired.
                t.controlBuf.put(&earlyAbortStream{
                        httpStatus:     http.StatusOK,