Skip to content

Socketpair authentication fails while Proxifier is enabled #129676

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-socketRelated to the socket, socketserver and selectors modulestype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions