Skip to content

Commit ab1dcaf

Browse files
socket: add SO_INCOMING_CPU for 3.11 (#7801)
python/cpython#31237
1 parent c93f262 commit ab1dcaf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

stdlib/_socket.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ SO_SNDLOWAT: int
256256
SO_SNDTIMEO: int
257257
SO_TYPE: int
258258
SO_USELOOPBACK: int
259+
if sys.platform == "linux" and sys.version_info >= (3, 11):
260+
SO_INCOMING_CPU: int
259261
TCP_CORK: int
260262
TCP_DEFER_ACCEPT: int
261263
TCP_FASTOPEN: int

stdlib/socket.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ if sys.platform == "linux" and sys.version_info >= (3, 9):
366366
)
367367
if sys.platform == "linux" and sys.version_info >= (3, 10):
368368
from _socket import IPPROTO_MPTCP as IPPROTO_MPTCP
369+
if sys.platform == "linux" and sys.version_info >= (3, 11):
370+
from _socket import SO_INCOMING_CPU as SO_INCOMING_CPU
369371
if sys.platform == "win32":
370372
from _socket import (
371373
RCVALL_IPLEVEL as RCVALL_IPLEVEL,

0 commit comments

Comments
 (0)