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))) {