| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Keep the current batch and index across _read() calls so chunks that remain after push() returns false are emitted on later reads. Fixes: nodejs#63275 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5
|
Review requested:
|
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #63276 +/- ##
========================================
Coverage 90.04% 90.05%
========================================
Files 713 714 +1
Lines 225003 225256 +253
Branches 42536 42573 +37
========================================
+ Hits 202606 202849 +243
- Misses 14177 14181 +4
- Partials 8220 8226 +6
... and 39 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Keep the current batch and index across _read() calls so chunks that remain after push() returns false are emitted on later reads. Fixes: #63275 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #63276 Fixes: #63275 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Keep the current batch and index across _read() calls so chunks that remain after push() returns false are emitted on later reads. Fixes: #63275 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #63276 Fixes: #63275 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Keep the current batch and index across _read() calls so chunks that remain after push() returns false are emitted on later reads. Fixes: nodejs#63275 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: nodejs#63276 Fixes: nodejs#63275 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Keep the current batch and index across _read() calls so chunks that remain after push() returns false are emitted on later reads. Fixes: #63275 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #63276 Backport-PR-URL: #64675 Fixes: #63275 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
toReadableSync() could drop chunks from a batch when classic stream
backpressure was applied.
When _read() pulled a batch with multiple chunks and push() returned
false, the method returned immediately without saving the remaining batch
items. A later _read() call advanced to the next iterator result, so the
unpushed chunks were lost.
This stores the current batch and index across _read() calls, allowing
toReadableSync() to resume the same batch after backpressure clears.
Fixes: #63275
Assisted-by: openai:gpt-5.5