thomasvs - in flumotion/branches/platform-3: . flumotion/component/consumers/httpstreamer

flumotion-commit at lists.fluendo.com flumotion-commit at lists.fluendo.com
Mon Dec 10 23:12:35 CET 2007


Author: thomasvs
Date: Mon Dec 10 23:12:24 2007
New Revision: 6004

Modified:
   flumotion/branches/platform-3/ChangeLog
   flumotion/branches/platform-3/flumotion/component/consumers/httpstreamer/resources.py
Log:
	* flumotion/component/consumers/httpstreamer/resources.py:
	  Log when we set the maximum fd # because of a python 2.4.3
	  bug.



Modified: flumotion/branches/platform-3/ChangeLog
==============================================================================
--- flumotion/branches/platform-3/ChangeLog	(original)
+++ flumotion/branches/platform-3/ChangeLog	Mon Dec 10 23:12:24 2007
@@ -1,3 +1,9 @@
+2007-12-10  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+	* flumotion/component/consumers/httpstreamer/resources.py:
+	  Log when we set the maximum fd # because of a python 2.4.3
+	  bug.
+
 2007-11-22  Thomas Vander Stichele  <thomas at apestaart dot org>
 
 	* doc/redhat/flumotion:

Modified: flumotion/branches/platform-3/flumotion/component/consumers/httpstreamer/resources.py
==============================================================================
--- flumotion/branches/platform-3/flumotion/component/consumers/httpstreamer/resources.py	(original)
+++ flumotion/branches/platform-3/flumotion/component/consumers/httpstreamer/resources.py	Mon Dec 10 23:12:24 2007
@@ -248,7 +248,10 @@
             neededfds = maxclients + self.__reserve_fds__
 
             # Bug in python 2.4.3, see http://sourceforge.net/tracker/index.php?func=detail&aid=1494314&group_id=5470&atid=105470
-            if version[:3] == (2,4,3) and not hasattr(socket,"has_2_4_3_patch"):
+            if version[:3] == (2, 4, 3) and \
+                not hasattr(socket, "has_2_4_3_patch"):
+                    self.warning(
+                        'Setting hardmax to 1024 due to python 2.4.3 bug')
                 hardmax = 1024
 
             if neededfds > softmax:


More information about the flumotion-commit mailing list