[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - handlers.py:1.7 zopeschema.xml:1.12
Chris McDonough
chrism@zope.com
Sat, 19 Jul 2003 23:52:24 -0400
Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv14688
Modified Files:
handlers.py zopeschema.xml
Log Message:
Support max-listen-sockets parameter in zope.conf (for ZServer CONNECTION_LIMIT).
=== Zope/lib/python/Zope/Startup/handlers.py 1.6 => 1.7 ===
--- Zope/lib/python/Zope/Startup/handlers.py:1.6 Wed Apr 23 15:27:38 2003
+++ Zope/lib/python/Zope/Startup/handlers.py Sat Jul 19 23:52:19 2003
@@ -101,6 +101,10 @@
def security_policy_implementation(value):
value not in ('C', None) and _setenv('ZOPE_SECURITY_POLICY', value)
+def max_listen_sockets(value):
+ import ZServer
+ ZServer.CONNECTION_LIMIT = value
+
# server handlers
def root_handler(config):
=== Zope/lib/python/Zope/Startup/zopeschema.xml 1.11 => 1.12 ===
--- Zope/lib/python/Zope/Startup/zopeschema.xml:1.11 Sat Jul 19 22:56:14 2003
+++ Zope/lib/python/Zope/Startup/zopeschema.xml Sat Jul 19 23:52:19 2003
@@ -557,4 +557,15 @@
<section type="zoperunner" name="*" attribute="runner"/>
+ <!-- the below should go into the ZServer package, but I can't quite
+ figure out how to put it there -->
+
+ <key name="max-listen-sockets" datatype="integer"
+ handler="max_listen_sockets" default="1000">
+ <description>
+ The maximum number of sockets that ZServer will attempt to open
+ in order to service incoming connections.
+ </description>
+ </key>
+
</schema>