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 | 4f8dc3d15c94e4c0bbc871695336845839578458 (patch) | |
tree | 18d44b898eae112c926e3dddf1e99e8a60282988 /Modules | |
parent | baa7223bcd64bc092c51548caaef1fb52782ae52 (diff) | |
download | cpython-4f8dc3d15c94e4c0bbc871695336845839578458.zip cpython-4f8dc3d15c94e4c0bbc871695336845839578458.tar.gz cpython-4f8dc3d15c94e4c0bbc871695336845839578458.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 7f6cd4d..d5506a6 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -7540,6 +7540,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 |