]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-29728: Provide socket.TCP_NOTSENT_LOWAT (#477)
authorNathaniel J. Smith <njs@pobox.com>
Thu, 23 Mar 2017 03:56:55 +0000 (20:56 -0700)
committerMariatta <Mariatta@users.noreply.github.com>
Thu, 23 Mar 2017 03:56:55 +0000 (20:56 -0700)
* Provide socket.TCP_NOTSENT_LOWAT
* New TCP option available on recent MacOS and Linux.
* Document addition of TCP_NOTSENT_LOWAT

Doc/library/socket.rst
Misc/NEWS
Modules/socketmodule.c

index d56caf0a5829c5583c9d21fa2e96048e0d88a661..8af6bc5439beeaeaa2ee553d56e713f97ec52c12 100644 (file)
@@ -303,6 +303,9 @@ Constants
       ``SO_DOMAIN``, ``SO_PROTOCOL``, ``SO_PEERSEC``, ``SO_PASSSEC``,
       ``TCP_USER_TIMEOUT``, ``TCP_CONGESTION`` were added.
 
+   .. versionchanged:: 3.7
+      ``TCP_NOTSENT_LOWAT`` was added.
+
 .. data:: AF_CAN
           PF_CAN
           SOL_CAN_*
index b17a5e90071261b78821773abd943886ffa65289..aac10a6bef70f1715eeffaafcde36705c1b28d9e 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -317,6 +317,9 @@ Library
 
 - bpo-28682: Added support for bytes paths in os.fwalk().
 
+- bpo-29728: Add new :data:`socket.TCP_NOTSENT_LOWAT` (Linux 3.12) constant.
+  Patch by Nathaniel J. Smith.
+  
 - bpo-29623: Allow use of path-like object as a single argument in
   ConfigParser.read().  Patch by David Ellis.
 
index 63e87e6e4867ee09bfc23821e8735329f484aa88..6d5c256ff340d69ea9b9f173648f4192c2de8d3a 100644 (file)
@@ -7507,6 +7507,9 @@ PyInit__socket(void)
 #ifdef  TCP_USER_TIMEOUT
     PyModule_AddIntMacro(m, TCP_USER_TIMEOUT);
 #endif
+#ifdef  TCP_NOTSENT_LOWAT
+    PyModule_AddIntMacro(m, TCP_NOTSENT_LOWAT);
+#endif
 
     /* IPX options */
 #ifdef  IPX_TYPE