★ wanayoo — archive 1999 https://github.com/python/cpython/pull/1333Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-27377: Add socket.fromfd2() and socket.fdtype(). #1333

Closed
wants to merge 2 commits into from

Conversation

nascheme
Copy link
Member

Also define SO_PEERSEC and SO_PASSSEC if they exist.

Also define SO_PEERSEC and SO_PASSSEC if they exist.
Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SO_PEERSEC and SO_PASSSEC are already defined.

I'm -1 on fromfd2. We shouldn't introduce yet another function and bloat the API even further. Instead let's fix the underlying bug and make socket.socket(fileno=fd) detect the socket values, see https://bugs.python.org/issue28134

@nascheme nascheme closed this Apr 28, 2017
@nascheme nascheme deleted the fix-issue-27377 branch April 28, 2017 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants