[Zope-Checkins] CVS: Zope/ZServer/medusa/test - max_sockets.py:1.4.170.1

Shane Hathaway cvs-admin at zope.org
Fri Nov 7 14:24:25 EST 2003


Update of /cvs-repository/Zope/ZServer/medusa/test
In directory cvs.zope.org:/tmp/cvs-serv3067

Modified Files:
      Tag: Zope-2_6-branch
	max_sockets.py 
Log Message:
Silenced a warning about ranges requiring integers.

The routine in question is using estimation to find the right number of
sockets to allow at once.


=== Zope/ZServer/medusa/test/max_sockets.py 1.4 => 1.4.170.1 ===
--- Zope/ZServer/medusa/test/max_sockets.py:1.4	Tue May  1 07:45:27 2001
+++ Zope/ZServer/medusa/test/max_sockets.py	Fri Nov  7 14:24:24 2003
@@ -50,8 +50,8 @@
     while 1:
         try:
             num = len(sl)
-            for i in range(1 + len(sl) * 0.05):
-                    # Increase exponentially.
+            for i in range(int(1 + len(sl) * 0.05)):
+                # Increase exponentially.
                 s = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
                 s.bind (('',0))
                 s.listen(5)




More information about the Zope-Checkins mailing list