Skip to content

Socketpair authentication fails while Proxifier is enabled #129676

Open
@mathiascode

Description

@mathiascode

Bug report

Bug description:

In the fallback socketpair implementation for Windows, socket authentication fails while Proxifier (and likely similar tools) are enabled. The following exception is always raised:

cpython/Lib/socket.py

Lines 644 to 648 in e41ec8e

if (
ssock.getsockname() != csock.getpeername()
or csock.getsockname() != ssock.getpeername()
):
raise ConnectionError("Unexpected peer connection")

Originally spotted in: nicotine-plus/nicotine-plus#3265

Relevant discussion on curl's issue tracker: curl/curl#10144

CPython versions tested on:

3.12

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions