Skip to content

Amend the GC warning in the README to clarify that consuming bodies is recommended but not required#4364

Merged
mcollina merged 1 commit intomainfrom
clarify-gc-behavior
Jul 30, 2025
Merged

Amend the GC warning in the README to clarify that consuming bodies is recommended but not required#4364
mcollina merged 1 commit intomainfrom
clarify-gc-behavior

Conversation

@mcollina
Copy link
Member

For the curious mind, this was implemented in #3199.

…s recommended but not required Signed-off-by: Matteo Collina <hello@matteocollina.com>
@Ethan-Arrowood
Copy link
Collaborator

Its also not just about garbage collection, right? If you keep around the body without consuming it, then the connection could also stay open. At least in certain circumstances.

Copy link
Collaborator

@Ethan-Arrowood Ethan-Arrowood left a comment

Choose a reason for hiding this comment

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

I see we already document about connection usage. LGTM 👍

@mcollina mcollina merged commit 57efacb into main Jul 30, 2025
33 checks passed
@mcollina mcollina deleted the clarify-gc-behavior branch July 30, 2025 20:10
@github-actions github-actions bot mentioned this pull request Jul 31, 2025
@JoshMock JoshMock mentioned this pull request Aug 7, 2025
slagiewka pushed a commit to slagiewka/undici that referenced this pull request Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants