[Python-checkins] cpython: add SO_PRIORITY (closes #19802)

benjamin.peterson python-checkins at python.org
Wed Nov 27 16:19:45 CET 2013


http://hg.python.org/cpython/rev/9bbada125b3f
changeset:   87613:9bbada125b3f
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Nov 27 09:18:54 2013 -0600
summary:
  add SO_PRIORITY (closes #19802)

Patch by Claudiu Popa.

files:
  Misc/NEWS              |  2 ++
  Modules/socketmodule.c |  3 +++
  2 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.
 
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list