From a46cb01cfd5e37151766c8c7f94015149abfe4bd Mon Sep 17 00:00:00 2001 From: Vishal chaturvedi Date: Thu, 16 Apr 2020 12:35:35 +0530 Subject: [PATCH] Fixes molnarg#107: Allow frames after RST_STREAM. --- lib/protocol/stream.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/protocol/stream.js b/lib/protocol/stream.js index e9fcc6b..32affbf 100644 --- a/lib/protocol/stream.js +++ b/lib/protocol/stream.js @@ -585,6 +585,7 @@ Stream.prototype._transition = function transition(sending, frame) { // can be used to close any of those streams. case 'CLOSED': if (PRIORITY || (sending && RST_STREAM) || + (sending && this._closedWithRst) || (receiving && WINDOW_UPDATE) || (receiving && this._closedByUs && (this._closedWithRst || RST_STREAM || ALTSVC || ORIGIN))) {