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 — http2: fix eos() for HTTP/2 streams after clean end & close by pimterry · Pull Request #67553 · nodejs/node Conversation
Member
This fixes #65677, replacing #65689. The latter does also fix that repro and a subset of the affected cases, but it's not complete and it's now stalled in review. It also fixes #66693 for v26 (but not fully for v27 & main yet, which need a non-backportable fix to cover the new breaking change semantics in #63249 too - separate PR for that coming shortly). The problem:
This PR fixes all that:
This improves on the fix in #65689 for #65677, which only handled the case where the data was all read within the next tick, and still treated this as an error otherwise.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsPreviously this could fail - not having read 'end' when the close arrived was treated as a premature close error for finished() and related APIs, even though the body data was cleanly ended and complete. We now check whether there is a clean end buffered. If so, we wait until it's read before evaluating whether the stream ended cleanly. Signed-off-by: Tim Perry <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67553 +/- ## ========================================== + Coverage 90.67% 90.68% +0.01% ========================================== Files 800 800 Lines 280889 281019 +130 Branches 54274 54303 +29 ========================================== + Hits 254684 254850 +166 + Misses 16295 16262 -33 + Partials 9910 9907 -3
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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 db671bb |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Previously this could fail - not having read 'end' when the close arrived was treated as a premature close error for finished() and related APIs, even though the body data was cleanly ended and complete. We now check whether there is a clean end buffered. If so, we wait until it's read before evaluating whether the stream ended cleanly. Signed-off-by: Tim Perry <[email protected]> PR-URL: #67553 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]>
Previously this could fail - not having read 'end' when the close arrived was treated as a premature close error for finished() and related APIs, even though the body data was cleanly ended and complete. We now check whether there is a clean end buffered. If so, we wait until it's read before evaluating whether the stream ended cleanly. Signed-off-by: Tim Perry <[email protected]> PR-URL: nodejs#67553 Reviewed-By: Matteo Collina <[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.
http2: async iterator rejects complete buffered response after NO_ERROR reset with request side open http2: async iteration reports premature close with buffered responses in v26.3.0+ and v24.20.0
There was an error while loading. Please reload this page.