Skip to content

_sendfile_zerocopy leaks the file selector #142403

@AZero13

Description

@AZero13

Bug report

Bug description:

_sendfile_zerocopy creates a fresh selector per call, registers the socket, and never uses it outside that scope.

We ought to close it.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15new features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions