GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: honor backpressure in decompression interceptor by mcollina · Pull Request #5829 · nodejs/undici

Conversation

@mcollina

@mcollina mcollina commented Sep 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I made a mess of the original GHSA fix by treating a stream backpressure bug as a response-size policy decision.

A 64 MiB limit answers a different question: how large a decoded response an application is willing to accept. It also rejects legitimate responses that can be consumed safely as streams. The correct fix is to honor the stream contract: stop pulling decoded output when the consumer pauses, propagate writable pressure from the decoder back to the transport, keep those pause reasons independent across retries, and wait to signal completion until the consumer resumes.

maxSize still exists as an opt-in per-stage circuit breaker. It now defaults to 0, leaving size policy to applications while backpressure keeps buffering tied to consumer demand.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mcollina added 2 commits September 15, 2026 09:28
@mcollina
fix: honor decompression backpressure
2ed6840
Signed-off-by: Matteo Collina <[email protected]>
@mcollina
fix(decompress): disable size limit by default
409b1f4
Signed-off-by: Matteo Collina <[email protected]>
@mcollina mcollina added the backport v7.x label Sep 15, 2026
@codecov-commenter

codecov-commenter commented Sep 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.63566% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.48%. Comparing base (fb3d786) to head (409b1f4).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
lib/interceptor/decompress.js 91.66% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5829      +/-   ##
==========================================
- Coverage   93.50%   93.48%   -0.03%     
==========================================
  Files         110      110              
  Lines       39557    39755     +198     
==========================================
+ Hits        36987    37163     +176     
- Misses       2570     2592      +22     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina
mcollina requested review from metcoder95, ronag and trivikr September 15, 2026 10:06
metcoder95
metcoder95 approved these changes Sep 15, 2026
View reviewed changes
@mcollina
mcollina merged commit 19901d8 into main Sep 16, 2026
68 of 69 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@mcollina
mcollina deleted the fix/decompress-backpressure branch September 16, 2026 13:41
@github-actions

github-actions Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

The backport to v7.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-v7.x v7.x
# Navigate to the new working tree
cd .worktrees/backport-v7.x
# Create a new branch
git switch --create backport-5829-to-v7.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 19901d8b73cb46a48e817dab4afce790f37fd2c1
# Push it to GitHub
git push --set-upstream origin backport-5829-to-v7.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-v7.x

Then, create a pull request where the base branch is v7.x and the compare/head branch is backport-5829-to-v7.x.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mcollina mcollina mentioned this pull request Sep 17, 2026
[Backport v7.x] fix: honor backpressure in decompression interceptor #5837
Merged
@kjsik11 kjsik11 mentioned this pull request Sep 18, 2026
test(decompress): wait for highWaterMark via readable instead of setImmediate loop #5841
Merged
3 of 5 tasks
mcollina added a commit that referenced this pull request Sep 21, 2026
@mcollina
fix: honor backpressure in decompression interceptor (#5829) (#5837)
369058e
* fix: honor decompression backpressure



* fix(decompress): disable size limit by default



---------


(cherry picked from commit 19901d8)

Signed-off-by: Matteo Collina <[email protected]>
This was referenced Sep 21, 2026
[Release] v8.11.0 #5848
Closed
[Release] v8.11.0 #5849
Merged
This was referenced Oct 24, 2026
refactor: Bump undici from 6.27.0 to 6.29.1 and 7.28.0 to 7.30.1 parse-community/Parse-SDK-dotNET#436
Merged
refactor: Bump undici from 6.27.0 to 6.29.1 and 7.28.0 to 7.30.1 parse-community/node-apn#226
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@metcoder95 metcoder95 metcoder95 approved these changes
@ronag ronag Awaiting requested review from ronag
@trivikr trivikr Awaiting requested review from trivikr

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

backport v7.x

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@mcollina @codecov-commenter @metcoder95
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.