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

gh-91498: socket: Add TCP_CONNECTION_INFO on macOS #69256

Merged
merged 2 commits into from Apr 27, 2022

Conversation

Copy link
Contributor

@devnexen devnexen commented Apr 10, 2022

closes: #91498

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

This should also be added to Doc/library/socket.rst, similar to the existing notes under https://docs.python.org/3.10/library/socket.html#socket.SOMAXCONN.

@@ -0,0 +1 @@
Adding ``TCP_CONNECTION_INFO`` macOs' option for the socketmodule
Copy link
Member

@JelleZijlstra JelleZijlstra Apr 10, 2022

Choose a reason for hiding this comment

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

Suggested change
Adding ``TCP_CONNECTION_INFO`` macOs' option for the socketmodule
Add the ``TCP_CONNECTION_INFO`` option (available on macOS) to :mod:`socket`.

@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Apr 10, 2022

Also, this should have an associated issue. Your NEWS entry refers to https://bugs.python.org/issue69256 which doesn't exist. We're in the process of moving to GitHub right now; once that's done (in a few hours I believe) you should make an associated GitHub issue.

@devnexen devnexen force-pushed the tcp_connection_info_macos branch from 036540c to 07e935f Compare Apr 13, 2022
@devnexen devnexen changed the title socketmodule: add macOs's TCP_CONNECTION_INFO socket option. gh-91498: socketmodule add macOs's TCP_CONNECTION_INFO socket option. Apr 13, 2022
@methane methane changed the title gh-91498: socketmodule add macOs's TCP_CONNECTION_INFO socket option. gh-91498: socket: Add TCP_CONNECTION_INFO on macOS Apr 14, 2022
@devnexen devnexen force-pushed the tcp_connection_info_macos branch from 07e935f to ae87fea Compare Apr 26, 2022
@JelleZijlstra JelleZijlstra self-assigned this Apr 26, 2022
@JelleZijlstra JelleZijlstra self-requested a review Apr 26, 2022
Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Compiled on my Mac and it's indeed present

>>> socket.TCP_CONNECTION_INFO
262

@JelleZijlstra JelleZijlstra merged commit ad9f817 into python:main Apr 27, 2022
13 checks passed
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.

5 participants