diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-11-29 15:55:04 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-11-29 15:55:04 (GMT) |
commit | 11dd6048aa3dc94e9b709f638301b0ccfcd4b9ee (patch) | |
tree | 13b568a550d13139fe5733f61c6b649cb275cd72 /Modules | |
parent | 9ec07721f459d14131d6453ccb6d2a1a0b0c1959 (diff) | |
download | cpython-11dd6048aa3dc94e9b709f638301b0ccfcd4b9ee.zip cpython-11dd6048aa3dc94e9b709f638301b0ccfcd4b9ee.tar.gz cpython-11dd6048aa3dc94e9b709f638301b0ccfcd4b9ee.tar.bz2 |
Add TCP_CONGESTION and TCP_USER_TIMEOUT
Issue #26273: Add new socket.TCP_CONGESTION (Linux 2.6.13) and
socket.TCP_USER_TIMEOUT (Linux 2.6.37) constants.
Patch written by Omar Sandoval.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 4c1d8f0..f4edc06 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -7512,6 +7512,12 @@ PyInit__socket(void) #ifdef TCP_FASTOPEN PyModule_AddIntMacro(m, TCP_FASTOPEN); #endif +#ifdef TCP_CONGESTION + PyModule_AddIntMacro(m, TCP_CONGESTION); +#endif +#ifdef TCP_USER_TIMEOUT + PyModule_AddIntMacro(m, TCP_USER_TIMEOUT); +#endif /* IPX options */ #ifdef IPX_TYPE |