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

Richard Jones richard@commonground.com.au
Thu, 10 Jul 2003 20:09:40 -0400


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

Modified Files:
	maxsockets.py 
Log Message:
This should be a configuration value as it takes a long time to
compute on Mac OSX


=== Zope3/src/zope/server/maxsockets.py 1.3 => 1.4 ===
--- Zope3/src/zope/server/maxsockets.py:1.3	Thu Feb  6 12:42:14 2003
+++ Zope3/src/zope/server/maxsockets.py	Thu Jul 10 20:09:35 2003
@@ -10,6 +10,9 @@
 # 4) max we can connect
 
 def max_server_sockets():
+    # XXX This should be a configuration value as it takes a long time to
+    # compute on Mac OSX
+    return 100
     sl = []
     while 1:
         try:
@@ -26,6 +29,9 @@
     return num
 
 def max_client_sockets():
+    # XXX This should be a configuration value as it takes a long time to
+    # compute on Mac OSX
+    return 100
     # make a server socket
     server = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
     server.bind (('', 9999))
@@ -47,6 +53,9 @@
     return num
 
 def max_select_sockets():
+    # XXX This should be a configuration value as it takes a long time to
+    # compute on Mac OSX
+    return 100
     sl = []
     while 1:
         try: