socket: add SO_INCOMING_CPU for 3.11 (#7801)

python/cpython#31237
This commit is contained in:
Jelle Zijlstra
2022-05-06 22:46:34 -07:00
committed by GitHub
parent c93f262427
commit ab1dcafec2
2 changed files with 4 additions and 0 deletions

View File

@@ -256,6 +256,8 @@ SO_SNDLOWAT: int
SO_SNDTIMEO: int
SO_TYPE: int
SO_USELOOPBACK: int
if sys.platform == "linux" and sys.version_info >= (3, 11):
SO_INCOMING_CPU: int
TCP_CORK: int
TCP_DEFER_ACCEPT: int
TCP_FASTOPEN: int

View File

@@ -366,6 +366,8 @@ if sys.platform == "linux" and sys.version_info >= (3, 9):
)
if sys.platform == "linux" and sys.version_info >= (3, 10):
from _socket import IPPROTO_MPTCP as IPPROTO_MPTCP
if sys.platform == "linux" and sys.version_info >= (3, 11):
from _socket import SO_INCOMING_CPU as SO_INCOMING_CPU
if sys.platform == "win32":
from _socket import (
RCVALL_IPLEVEL as RCVALL_IPLEVEL,