From bd93866976273a632e4bd696985ecbcf81da2de1 Mon Sep 17 00:00:00 2001 From: Ciro Spaciari Date: Tue, 3 Jun 2025 14:21:27 -0700 Subject: [PATCH] test --- src/js/node/http2.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/js/node/http2.ts b/src/js/node/http2.ts index 3a15bf0b5e..b798cf3755 100644 --- a/src/js/node/http2.ts +++ b/src/js/node/http2.ts @@ -2732,19 +2732,12 @@ class ServerHttp2Session extends Http2Session { #onClose() { const parser = this.#parser; - const err = this.connecting ? $ERR_SOCKET_CLOSED() : null; if (parser) { - for (const stream of parser.getAllStreams()) { - if (stream) { - stream.close(NGHTTP2_CANCEL); - } - } + parser.emitAbortToAllStreams(); parser.detach(); this.#parser = null; } - this.close(); - this.destroy(err, NGHTTP2_NO_ERROR); } #onError(error: Error) {