[Zope3-checkins] CVS: Zope3/src/zope/server - maxsockets.py:1.2.4.1

Sidnei da Silva sidnei@x3ng.com.br
Tue, 11 Feb 2003 09:42:09 -0500


Update of /cvs-repository/Zope3/src/zope/server
In directory cvs.zope.org:/tmp/cvs-serv18615/src/zope/server

Modified Files:
      Tag: paris-copypasterename-branch
	maxsockets.py 
Log Message:
Updating from HEAD to make sure everything still works before merging

=== Zope3/src/zope/server/maxsockets.py 1.2 => 1.2.4.1 ===
--- Zope3/src/zope/server/maxsockets.py:1.2	Wed Dec 25 09:15:23 2002
+++ Zope3/src/zope/server/maxsockets.py	Tue Feb 11 09:41:38 2003
@@ -51,7 +51,7 @@
     while 1:
         try:
             num = len(sl)
-            for i in range(1 + len(sl) * 0.05):
+            for i in range(1 + len(sl) // 20):
                 # Increase exponentially.
                 s = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
                 s.bind (('',0))