[Python-checkins] cpython (3.6): Add TCP_CONGESTION and TCP_USER_TIMEOUT

victor.stinner python-checkins at python.org
Tue Nov 29 12:22:51 EST 2016


https://hg.python.org/cpython/rev/6d69da76be6a
changeset:   105390:6d69da76be6a
branch:      3.6
parent:      105387:6b8f7d1e2ba4
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
@@ -74,6 +74,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
@@ -7512,6 +7512,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