Commit c2a0f39a authored by Chris McDonough's avatar Chris McDonough

Dont try to dwim CONNECTION_LIMIT, instead take it from Zope configuration.

parent 282590f2
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
import sys import sys
import utils import utils
from App.config import getConfiguration
######################################################### #########################################################
### declarations used by external packages ### declarations used by external packages
...@@ -24,7 +25,7 @@ exit_code = 0 ...@@ -24,7 +25,7 @@ exit_code = 0
ZSERVER_VERSION='1.1' ZSERVER_VERSION='1.1'
# the maximum number of incoming connections to ZServer # the maximum number of incoming connections to ZServer
CONNECTION_LIMIT=utils.getMaxSockets() CONNECTION_LIMIT=1000 # may be reset by max_listen_sockets handler in Zope
# the Zope version string # the Zope version string
ZOPE_VERSION=utils.getZopeVersion() ZOPE_VERSION=utils.getZopeVersion()
......
...@@ -13,10 +13,6 @@ ...@@ -13,10 +13,6 @@
""" A set of utility routines used by asyncore initialization """ """ A set of utility routines used by asyncore initialization """
def getMaxSockets():
from medusa.test import max_sockets
return max_sockets.max_select_sockets()
def getZopeVersion(): def getZopeVersion():
import App.version_txt import App.version_txt
App.version_txt.version_txt() App.version_txt.version_txt()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment