Skip to content

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

Closed
nascheme wants to merge 2 commits intomasterfrom
fix-issue-27377
Closed

bpo-27377: Add socket.fromfd2() and socket.fdtype().#1333
nascheme wants to merge 2 commits intomasterfrom
fix-issue-27377

Conversation

@nascheme
Copy link
Copy Markdown
Member

Also define SO_PEERSEC and SO_PASSSEC if they exist.

Also define SO_PEERSEC and SO_PASSSEC if they exist.
Copy link
Copy Markdown
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