GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — stream: keep async context of parked writes by mcollina · Pull Request #66907 · nodejs/node Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #66907 +/- ## ======================================= Coverage 90.57% 90.58% ======================================= Files 797 797 Lines 278502 278487 -15 Branches 53540 53530 -10 ======================================= + Hits 252257 252270 +13 + Misses 16587 16579 -8 + Partials 9658 9638 -20
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A TransformStream write that parks on backpressure was resumed from the read that lifted the backpressure, so transform(), the writes queued behind it, and flush() ran in the reader's async context instead of the writer's. Capture the async context frame when the write parks and restore it while the continuation runs, matching the context the spec's [[backpressureChangePromise]] reaction had. Fixes: nodejs#66906 Signed-off-by: Matteo Collina <[email protected]>
f071601 to
17dc6fa
Compare
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 60e6c84 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A TransformStream write that parks on backpressure was resumed from the read that lifted the backpressure, so transform(), the writes queued behind it, and flush() ran in the reader's async context instead of the writer's. Capture the async context frame when the write parks and restore it while the continuation runs, matching the context the spec's [[backpressureChangePromise]] reaction had. Fixes: #66906 Signed-off-by: Matteo Collina <[email protected]> PR-URL: #66907 Backport-PR-URL: #66915 Fixes: #66906 Refs: #66906 Refs: #66907 Reviewed-By: James M Snell <[email protected]>
A TransformStream write that parks on backpressure was resumed from the read that lifted the backpressure, so transform(), the writes queued behind it, and flush() ran in the reader's async context instead of the writer's. Capture the async context frame when the write parks and restore it while the continuation runs, matching the context the spec's [[backpressureChangePromise]] reaction had. Fixes: nodejs#66906 Signed-off-by: Matteo Collina <[email protected]> PR-URL: nodejs#66907 Backport-PR-URL: nodejs#66915 Fixes: nodejs#66906 Refs: nodejs#66906 Refs: nodejs#66907 Reviewed-By: James M Snell <[email protected]>
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [node](https://nodejs.org) ([source](https://github.com/nodejs/node)) | patch | `24.22.1` → `24.22.2` | --- >⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/2097) for more information. --- ### Release Notes <details> <summary>nodejs/node (node)</summary> ### [`v24.22.2`](https://github.com/nodejs/node/releases/tag/v24.22.2): 2026-10-28, Version 24.22.2 'Krypton' (LTS), @​aduh95 [Compare Source](nodejs/node@v24.22.1...v24.22.2) ##### Commits - \[[`f8bdcd54ed`](nodejs/node@f8bdcd54ed)] - **deps**: V8: backport [`786c1c2`](nodejs/node@786c1c2d88d4) (Eliau Elkouby) [#​66249](nodejs/node#66249) - \[[`3b93fd6b2b`](nodejs/node@3b93fd6b2b)] - **deps**: V8: backport [`1a00890`](nodejs/node@1a0089053443) (Jakob Linke) [#​65764](nodejs/node#65764) - \[[`5aaf62faaa`](nodejs/node@5aaf62faaa)] - **deps**: V8: backport [`c9c0abf`](nodejs/node@c9c0abfa51f0) (Jakob Linke) [#​65764](nodejs/node#65764) - \[[`3b8eb1a920`](nodejs/node@3b8eb1a920)] - **deps**: V8: backport [`ebd1578`](nodejs/node@ebd15783b7ba) (Marja Hölttä) [#​65764](nodejs/node#65764) - \[[`ab70b5d681`](nodejs/node@ab70b5d681)] - **deps**: V8: cherry-pick [`853553f`](nodejs/node@853553fe755c) (Victor Gomes) [#​66241](nodejs/node#66241) - \[[`17ec999f24`](nodejs/node@17ec999f24)] - **stream**: keep async context of parked writes (Matteo Collina) [#​66907](nodejs/node#66907) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - "before 9am on tuesday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODguMiIsInVwZGF0ZWRJblZlciI6IjQ0LjIwNi4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==--> Reviewed-on: https://code.futo.org/harbor/harbor/pulls/2149 Reviewed-by: Thomas de Zeeuw <[email protected]>
A TransformStream write that parks on backpressure was resumed from the read that lifted the backpressure, so transform(), the writes queued behind it, and flush() ran in the reader's async context instead of the writer's. Capture the async context frame when the write parks and restore it while the continuation runs, matching the context the spec's [[backpressureChangePromise]] reaction had. Fixes: #66906 Signed-off-by: Matteo Collina <[email protected]> PR-URL: #66907 Backport-PR-URL: #66915 Fixes: #66906 Refs: #66906 Refs: #66907 Reviewed-By: James M Snell <[email protected]>
A TransformStream write that parks on backpressure was resumed from the read that lifted the backpressure, so transform(), the writes queued behind it, and flush() ran in the reader's async context instead of the writer's. Capture the async context frame when the write parks and restore it while the continuation runs, matching the context the spec's [[backpressureChangePromise]] reaction had. Fixes: nodejs#66906 Signed-off-by: Matteo Collina <[email protected]> PR-URL: nodejs#66907 Fixes: nodejs#66906 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
webstreams: transform() loses AsyncLocalStorage context after a parked write (regression in v24.22.0)
There was an error while loading. Please reload this page.