Skip to content

Use FinalizationRegistry to dump the socket if the Response is GC'd #2856

Closed
@mcollina

Description

If a user can't consume the body anymore, we can just dump it.
We can detect a response is not accessible by the use of a FinalizationRegistry.

@KhafraDev I think this would bring us a step closer to the spec.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions