Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flight][Reply] Close Response after creating root chunk #27634

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

gnoff
Copy link
Collaborator

@gnoff gnoff commented Nov 1, 2023

creating the root after closing the response can lead to a promise that never rejects. This is not intended use of the decodeReply API but if pathalogical cases where you pass a raw FormData into this fucntion with no zero chunk it can hang forever. This reordering causes a connection error instead

@react-sizebot
Copy link

react-sizebot commented Nov 1, 2023

Comparing: ca16c26...95a5efc

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 175.09 kB 175.09 kB = 54.47 kB 54.47 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 177.21 kB 177.21 kB = 55.16 kB 55.16 kB
facebook-www/ReactDOM-prod.classic.js = 567.70 kB 567.70 kB = 99.96 kB 99.96 kB
facebook-www/ReactDOM-prod.modern.js = 551.56 kB 551.56 kB = 97.06 kB 97.06 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 95a5efc

@gnoff gnoff merged commit 08a3953 into facebook:main Nov 1, 2023
2 checks passed
@gnoff gnoff deleted the bugfix-no-chunk branch November 1, 2023 01:31
kodiakhq bot pushed a commit to vercel/next.js that referenced this pull request Nov 1, 2023
Updates React from 0c6348758 to 08a39539f.

### React upstream changes

- facebook/react#27634
- facebook/react#27632
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
)

creating the root after closing the response can lead to a promise that
never rejects. This is not intended use of the decodeReply API but if
pathalogical cases where you pass a raw FormData into this fucntion with
no zero chunk it can hang forever. This reordering causes a connection
error instead

---------

Co-authored-by: Zack Tanner <[email protected]>
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
creating the root after closing the response can lead to a promise that
never rejects. This is not intended use of the decodeReply API but if
pathalogical cases where you pass a raw FormData into this fucntion with
no zero chunk it can hang forever. This reordering causes a connection
error instead

---------

Co-authored-by: Zack Tanner <[email protected]>

DiffTrain build for commit 08a3953.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants