Skip to content

Commit

Permalink
note
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Oct 16, 2024
1 parent 58be6b5 commit 56dea47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2330,8 +2330,10 @@ class Http2Stream extends Duplex {
if (!this.closed) {
let goawayCode = sessionState.goawayCode;
if (goawayCode === NGHTTP2_NO_ERROR) {
// Received NO_ERROR (GOAWAY) from remote peer yet still got reset
goawayCode = NGHTTP2_INTERNAL_ERROR;
// Received NO_ERROR (GOAWAY) from remote peer yet still got reset.
// This needs to be null because the other side is within its rights
// to TCP RST after we send non-zero GOAWAY.
goawayCode = null;
}

let destroyCode = sessionState.destroyCode;
Expand Down

0 comments on commit 56dea47

Please sign in to comment.