Skip to content

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

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

Merged
merged 1 commit into from
Jul 30, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants