This commit is contained in:
Ciro Spaciari
2025-06-03 11:05:43 -07:00
parent 54c2174d06
commit 6cc40db1b2

View File

@@ -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