mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079)
This commit is contained in:
parent
2b47af6398
commit
d59d7374a3
4 changed files with 14 additions and 0 deletions
|
@ -8158,6 +8158,10 @@ PyInit__socket(void)
|
|||
#endif
|
||||
#ifdef TCP_KEEPIDLE
|
||||
PyModule_AddIntMacro(m, TCP_KEEPIDLE);
|
||||
#endif
|
||||
/* TCP_KEEPALIVE is OSX's TCP_KEEPIDLE equivalent */
|
||||
#if defined(__APPLE__) && defined(TCP_KEEPALIVE)
|
||||
PyModule_AddIntMacro(m, TCP_KEEPALIVE);
|
||||
#endif
|
||||
#ifdef TCP_KEEPINTVL
|
||||
PyModule_AddIntMacro(m, TCP_KEEPINTVL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue