diff options
author | Nathaniel J. Smith <njs@pobox.com> | 2017-03-23 03:56:55 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-03-23 03:56:55 (GMT) |
commit | 1e2147b9d75a64df370a9393c2b5b9d170dc0afd (patch) | |
tree | 8ced60dd3784bf1ddb601b0d896247c8f34b5e38 /Modules/socketmodule.c | |
parent | fad7f1560669af1766c583c7ef242c55d8c8de41 (diff) | |
download | cpython-1e2147b9d75a64df370a9393c2b5b9d170dc0afd.zip cpython-1e2147b9d75a64df370a9393c2b5b9d170dc0afd.tar.gz cpython-1e2147b9d75a64df370a9393c2b5b9d170dc0afd.tar.bz2 |
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
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 63e87e6..6d5c256 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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 |