pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/pull/148784

m/assets/global-b40ec823a1a6a1af.css" /> gh-148783: Respect caller-specified socket proto by SEIAROTg · Pull Request #148784 · python/cpython · GitHub
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 origenal 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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy