[Python-checkins] cpython: Add TCP_CONGESTION and TCP_USER_TIMEOUT
victor.stinner
python-checkins at python.org
Tue Nov 29 10:55:27 EST 2016
https://hg.python.org/cpython/rev/674fb9644eaa
changeset: 105389:674fb9644eaa
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Nov 29 16:55:04 2016 +0100
summary:
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.
files:
Misc/NEWS | 4 ++++
Modules/socketmodule.c | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -160,6 +160,10 @@
Library
-------
+- Issue #26273: Add new :data:`socket.TCP_CONGESTION` (Linux 2.6.13) and
+ :data:`socket.TCP_USER_TIMEOUT` (Linux 2.6.37) constants. Patch written by
+ Omar Sandoval.
+
- Issue #28752: Restored the __reduce__() methods of datetime objects.
- Issue #28727: Regular expression patterns, _sre.SRE_Pattern objects created
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -7540,6 +7540,12 @@
#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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list