diff --git a/http2/server.go b/http2/server.go index 4561e3cc5..739f69f6d 100644 --- a/http2/server.go +++ b/http2/server.go @@ -3195,6 +3195,7 @@ func (sc *serverConn) startPush(msg *startPushRequest) { panic(fmt.Sprintf("newWriterAndRequestNoBody(%+v): %v", msg.url, err)) } + sc.curHandlers++ go sc.runHandler(rw, req, sc.handler.ServeHTTP) return promisedID, nil }