Skip to content

gh-148783: Respect caller-specified socket proto#148784

Open
SEIAROTg wants to merge 1 commit intopython:mainfrom
SEIAROTg:gh-148783
Open

gh-148783: Respect caller-specified socket proto#148784
SEIAROTg wants to merge 1 commit intopython:mainfrom
SEIAROTg:gh-148783

Conversation

@SEIAROTg
Copy link
Copy Markdown

@SEIAROTg SEIAROTg commented Apr 19, 2026

This limits socket proto detection to only when proto == -1, so that proto explicitly passed in as argument is always respected, instead of being set to zero when SO_PROTOCOL is not supported (e.g. macOS).

I believe this is inline with the spirit of original commit b6e43af that introduced this detection, which states:

The auto-detection can be overruled
by passing in family, type, and proto explicitly.

@python-cla-bot
Copy link
Copy Markdown

python-cla-bot bot commented Apr 19, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 19, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@SEIAROTg SEIAROTg changed the title gh-148783: Respect explicit socket proto gh-148783: Respect caller-specified socket proto Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant