Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
44a3a312
Commit
44a3a312
authored
Jul 20, 2003
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support max-listen-sockets parameter in zope.conf (for ZServer CONNECTION_LIMIT).
parent
c2a0f39a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
lib/python/Zope/Startup/handlers.py
lib/python/Zope/Startup/handlers.py
+4
-0
lib/python/Zope/Startup/zopeschema.xml
lib/python/Zope/Startup/zopeschema.xml
+11
-0
No files found.
lib/python/Zope/Startup/handlers.py
View file @
44a3a312
...
...
@@ -101,6 +101,10 @@ def http_realm(value):
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
):
...
...
lib/python/Zope/Startup/zopeschema.xml
View file @
44a3a312
...
...
@@ -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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment