socket: add TCP_KEEPALIVE (#8100)

bpo-34932

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanuandhauntsaninja authored and GitHub committed 2022-06-19 17:57:07 +01:00
1 parent 411d85feeb
commit 34579f1edf
2 files changed
+4

No files matched your search

+2
View File
@@ -273,6 +273,8 @@ TCP_SYNCNT: int
TCP_WINDOW_CLAMP: int
if sys.version_info >= (3, 7):
TCP_NOTSENT_LOWAT: int
if sys.version_info >= (3, 10) and sys.platform == "darwin":
TCP_KEEPALIVE: int
if sys.version_info >= (3, 11) and sys.platform == "darwin":
TCP_CONNECTION_INFO: int