Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,15 @@ Constants

.. availability:: FreeBSD.

.. data:: SO_INCOMING_CPU

Constant to optimize CPU locality, to be used in conjunction with
:data:`SO_REUSEPORT`.

.. versionadded:: 3.11

.. availability:: Linux >= 3.9

Functions
^^^^^^^^^

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add ``SO_INCOMING_CPU`` constant to :mod:`socket`.
3 changes: 3 additions & 0 deletions Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -7505,6 +7505,9 @@ PyInit__socket(void)
#ifdef SO_EXCLUSIVEADDRUSE
PyModule_AddIntMacro(m, SO_EXCLUSIVEADDRUSE);
#endif
#ifdef SO_INCOMING_CPU
PyModule_AddIntMacro(m, SO_INCOMING_CPU);
#endif

#ifdef SO_KEEPALIVE
PyModule_AddIntMacro(m, SO_KEEPALIVE);
Expand Down