Skip to content

Commit 56dea47

Browse files
committed
note
1 parent 58be6b5 commit 56dea47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/internal/http2/core.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,8 +2330,10 @@ class Http2Stream extends Duplex {
23302330
if (!this.closed) {
23312331
let goawayCode = sessionState.goawayCode;
23322332
if (goawayCode === NGHTTP2_NO_ERROR) {
2333-
// Received NO_ERROR (GOAWAY) from remote peer yet still got reset
2334-
goawayCode = NGHTTP2_INTERNAL_ERROR;
2333+
// Received NO_ERROR (GOAWAY) from remote peer yet still got reset.
2334+
// This needs to be null because the other side is within its rights
2335+
// to TCP RST after we send non-zero GOAWAY.
2336+
goawayCode = null;
23352337
}
23362338

23372339
let destroyCode = sessionState.destroyCode;

0 commit comments

Comments
 (0)