Commit 1e2147b9 authored by Nathaniel J. Smith's avatar Nathaniel J. Smith Committed by Mariatta

bpo-29728: Provide socket.TCP_NOTSENT_LOWAT (#477)

* Provide socket.TCP_NOTSENT_LOWAT
* New TCP option available on recent MacOS and Linux.
* Document addition of TCP_NOTSENT_LOWAT
parent fad7f156
...@@ -303,6 +303,9 @@ Constants ...@@ -303,6 +303,9 @@ Constants
``SO_DOMAIN``, ``SO_PROTOCOL``, ``SO_PEERSEC``, ``SO_PASSSEC``, ``SO_DOMAIN``, ``SO_PROTOCOL``, ``SO_PEERSEC``, ``SO_PASSSEC``,
``TCP_USER_TIMEOUT``, ``TCP_CONGESTION`` were added. ``TCP_USER_TIMEOUT``, ``TCP_CONGESTION`` were added.
.. versionchanged:: 3.7
``TCP_NOTSENT_LOWAT`` was added.
.. data:: AF_CAN .. data:: AF_CAN
PF_CAN PF_CAN
SOL_CAN_* SOL_CAN_*
......
...@@ -317,6 +317,9 @@ Library ...@@ -317,6 +317,9 @@ Library
- bpo-28682: Added support for bytes paths in os.fwalk(). - 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 - bpo-29623: Allow use of path-like object as a single argument in
ConfigParser.read(). Patch by David Ellis. ConfigParser.read(). Patch by David Ellis.
......
...@@ -7507,6 +7507,9 @@ PyInit__socket(void) ...@@ -7507,6 +7507,9 @@ PyInit__socket(void)
#ifdef TCP_USER_TIMEOUT #ifdef TCP_USER_TIMEOUT
PyModule_AddIntMacro(m, TCP_USER_TIMEOUT); PyModule_AddIntMacro(m, TCP_USER_TIMEOUT);
#endif #endif
#ifdef TCP_NOTSENT_LOWAT
PyModule_AddIntMacro(m, TCP_NOTSENT_LOWAT);
#endif
/* IPX options */ /* IPX options */
#ifdef IPX_TYPE #ifdef IPX_TYPE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment