Skip to content

Commit 5ef12f1

Browse files
http2: use refused stream on deferred close
1 parent 2263be5 commit 5ef12f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎lib/internal/http2/core.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ function onSessionHeaders(handle, id, cat, flags, headers, sensitiveHeaders) {
369369
// still walking the receive buffer). Tear down the C++ stream so subsequent
370370
// DATA frames do not call CallJSOnreadMethod with a missing onread.
371371
if (session.destroyed) {
372+
handle.rstStream(NGHTTP2_REFUSED_STREAM);
372373
handle.destroy();
373374
return;
374375
}

0 commit comments

Comments
 (0)