Skip to content

Backport 5926 v7.x - #6105

Closed
subhaushsingh wants to merge 2 commits into
nodejs:v7.xfrom
subhaushsingh:backport-5926-v7.x
Closed

subhaushsingh wants to merge 2 commits into
nodejs:v7.xfrom
subhaushsingh:backport-5926-v7.x

Conversation

@subhaushsingh

@subhaushsingh subhaushsingh commented Oct 27, 2026 •

Copy link
Copy Markdown

This relates to...

Refs #6091

Rationale

Fixes a process crash that occurs when a fetch request with a FormData body is aborted, resulting in ERR_INVALID_STATE: ReadableStream is already closed.

Changes

Backport of #5926 to v7.x. Cherry-picked cleanly from e049c53b, with no conflicts.

Features

N/A

Bug Fixes

  • Fixes the process crash caused by an aborted fetch with a FormData body.
  • Adds test/issue-6091.js, which reproduces the issue and fails on v7.x before the cherry-pick but passes afterward.

Breaking Changes and Deprecations

N/A

Testing

  • Ran test/fetch/{client-fetch,formdata,request,response,abort,abort2}.js — 113/113 tests passed.
  • Ran lint successfully.

Status

KhafraDev and others added 2 commits October 27, 2026 19:24
Fixes nodejs#5923

(cherry picked from commit e049c53)
Signed-off-by: Subh Aush Singh <subhaushsingh@gmail.com>
@mcollina
mcollina changed the base branch from main to v7.x October 27, 2026 16:13
@mcollina

Copy link
Copy Markdown
Member

rebased for 7.x

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tsctx

tsctx commented Oct 29, 2026

Copy link
Copy Markdown
Member

This duplicates the automated backport PR #6093, so I’m closing it in favor of that one.

@tsctx tsctx closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants