diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-11-27 15:18:54 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-11-27 15:18:54 (GMT) |
commit | 1314ef73d023f10abb6705c386d2a39d692d413b (patch) | |
tree | e7905f23f728fb74ed398663091ac956ea7c8f9a | |
parent | 20c28c1ea2a8353b515f235d671244117a69effb (diff) | |
download | cpython-1314ef73d023f10abb6705c386d2a39d692d413b.zip cpython-1314ef73d023f10abb6705c386d2a39d692d413b.tar.gz cpython-1314ef73d023f10abb6705c386d2a39d692d413b.tar.bz2 |
add SO_PRIORITY (closes #19802)
Patch by Claudiu Popa.
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rw-r--r-- | Modules/socketmodule.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -18,6 +18,8 @@ Core and Builtins Library ------- +- Issue #19802: Add socket.SO_PRIORITY. + - Issue #11508: Fixed uuid.getnode() and uuid.uuid1() on environment with virtual interface. Original patch by Kent Frazier. diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 5ba7f4c..9e0da13 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -6241,6 +6241,9 @@ PyInit__socket(void) #ifdef SO_BINDTODEVICE PyModule_AddIntMacro(m, SO_BINDTODEVICE); #endif +#ifdef SO_PRIORITY + PyModule_AddIntMacro(m, SO_PRIORITY); +#endif /* Maximum number of connections for "listen" */ #ifdef SOMAXCONN |