We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58be6b5 commit 56dea47Copy full SHA for 56dea47
lib/internal/http2/core.js
@@ -2330,8 +2330,10 @@ class Http2Stream extends Duplex {
2330
if (!this.closed) {
2331
let goawayCode = sessionState.goawayCode;
2332
if (goawayCode === NGHTTP2_NO_ERROR) {
2333
- // Received NO_ERROR (GOAWAY) from remote peer yet still got reset
2334
- 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
2335
+ // to TCP RST after we send non-zero GOAWAY.
2336
+ goawayCode = null;
2337
}
2338
2339
let destroyCode = sessionState.destroyCode;
0 commit comments