Skip to content

fix: consider bytes read when dumping#3360

Merged
ronag merged 1 commit intomainfrom
dump-bytes-read
Jun 23, 2024
Merged

fix: consider bytes read when dumping#3360
ronag merged 1 commit intomainfrom
dump-bytes-read

Conversation

@ronag
Copy link
Member

@ronag ronag commented Jun 22, 2024

This relates to...

Rationale

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

@ronag ronag requested a review from metcoder95 June 23, 2024 06:21

return await new Promise((resolve, reject) => {
if (this[kContentLength] > limit) {
if (this[kContentLength] > limit || this[kBytesRead] > limit) {
Copy link
Member

Choose a reason for hiding this comment

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

Shall we consider this a breaking change?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think so.

@ronag ronag merged commit 0455e06 into main Jun 23, 2024
ronag added a commit to nxtedition/undici that referenced this pull request Jun 25, 2024
* upstream/main: fix: use explicit flag for when use has interacted with stream (nodejs#3361) refactor: simplify signal handling (nodejs#3362) fix: consider bytes read when dumping (nodejs#3360) websocket: don't use pooled buffer in mask pool (nodejs#3357) Revert "fix: post request signal (nodejs#3354)" (nodejs#3359) fix: post request signal (nodejs#3354) build(deps): bump node from `075a5cc` to `9af472b` in /build (nodejs#3355)
@Uzlopak Uzlopak deleted the dump-bytes-read branch August 1, 2024 09:57
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
This was referenced Dec 16, 2024
@github-actions github-actions bot mentioned this pull request Mar 12, 2025
@github-actions github-actions bot mentioned this pull request May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants