changeset 87613:9bbada125b3f

add SO_PRIORITY (closes #19802) Patch by Claudiu Popa.
author Benjamin Peterson <benjamin@python.org>
date Wed, 27 Nov 2013 09:18:54 -0600
parents 23459df0753e
children 5c9af8194d3b
files Misc/NEWS Modules/socketmodule.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Misc/NEWS	Wed Nov 27 02:26:54 2013 -0800
+++ b/Misc/NEWS	Wed Nov 27 09:18:54 2013 -0600
@@ -18,6 +18,8 @@
 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.
 
--- a/Modules/socketmodule.c	Wed Nov 27 02:26:54 2013 -0800
+++ b/Modules/socketmodule.c	Wed Nov 27 09:18:54 2013 -0600
@@ -6241,6 +6241,9 @@
 #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