From 6cc40db1b2ae6a2a7e712c7c8c263b92db76547c Mon Sep 17 00:00:00 2001 From: Ciro Spaciari Date: Tue, 3 Jun 2025 11:05:43 -0700 Subject: [PATCH] maybe --- src/js/node/http2.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/node/http2.ts b/src/js/node/http2.ts index 21e26c013c..8e4a73bfff 100644 --- a/src/js/node/http2.ts +++ b/src/js/node/http2.ts @@ -2612,13 +2612,14 @@ class ServerHttp2Session extends Http2Session { if (!stream.rstCode) { stream.rstCode = 0; } + pushToStream(stream, null); + // If the user hasn't tried to consume the stream (and this is a server // session) then just dump the incoming data so that the stream can // be destroyed. if (stream.readableFlowing === null) { stream.resume(); } - pushToStream(stream, null); } } // 7 = closed, in this case we already send everything and received everything