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
baa18866
Commit
baa18866
authored
Jan 14, 2005
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Collector #1661: wire up 'python-check-interval'.
parent
0fa21285
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
doc/CHANGES.txt
doc/CHANGES.txt
+4
-0
lib/python/Zope/Startup/__init__.py
lib/python/Zope/Startup/__init__.py
+5
-0
lib/python/Zope/Startup/tests/testStarter.py
lib/python/Zope/Startup/tests/testStarter.py
+16
-0
No files found.
doc/CHANGES.txt
View file @
baa18866
...
@@ -51,6 +51,10 @@ Zope Changes
...
@@ -51,6 +51,10 @@ Zope Changes
Bugs fixed
Bugs fixed
- Collector #1661: make 'python-check-interval' setting in zope.conf
actually work as documented. This setting allows for important
tuning opportunities for production Zope servers.
- Collector #1657: Don't break host-based virtual hosting when
- Collector #1657: Don't break host-based virtual hosting when
purging an HTTP accelerator.
purging an HTTP accelerator.
...
...
lib/python/Zope/Startup/__init__.py
View file @
baa18866
...
@@ -94,6 +94,7 @@ class ZopeStarter:
...
@@ -94,6 +94,7 @@ class ZopeStarter:
self
.
dropPrivileges
()
self
.
dropPrivileges
()
self
.
makeLockFile
()
self
.
makeLockFile
()
self
.
makePidFile
()
self
.
makePidFile
()
self
.
setupInterpreter
()
self
.
startZope
()
self
.
startZope
()
self
.
registerSignals
()
self
.
registerSignals
()
# emit a "ready" message in order to prevent the kinds of emails
# emit a "ready" message in order to prevent the kinds of emails
...
@@ -306,6 +307,10 @@ class ZopeStarter:
...
@@ -306,6 +307,10 @@ class ZopeStarter:
except
OSError
:
except
OSError
:
pass
pass
def
setupInterpreter
(
self
):
""" make changes to the python interpreter environment """
sys
.
setcheckinterval
(
self
.
cfg
.
python_check_interval
)
class
WindowsZopeStarter
(
ZopeStarter
):
class
WindowsZopeStarter
(
ZopeStarter
):
...
...
lib/python/Zope/Startup/tests/testStarter.py
View file @
baa18866
...
@@ -356,6 +356,22 @@ class ZopeStarterTestCase(test_logger.LoggingTestBase):
...
@@ -356,6 +356,22 @@ class ZopeStarterTestCase(test_logger.LoggingTestBase):
starter
.
unlinkPidFile
()
starter
.
unlinkPidFile
()
self
.
failIf
(
os
.
path
.
exists
(
name
))
self
.
failIf
(
os
.
path
.
exists
(
name
))
def
testConfigureInterpreter
(
self
):
import
sys
oldcheckinterval
=
sys
.
getcheckinterval
()
newcheckinterval
=
oldcheckinterval
+
1
conf
=
self
.
load_config_text
(
"""
instancehome <<INSTANCE_HOME>>
python-check-interval %d
"""
%
newcheckinterval
)
try
:
starter
=
self
.
get_starter
(
conf
)
starter
.
setupInterpreter
()
self
.
failUnlessEqual
(
sys
.
getcheckinterval
()
,
newcheckinterval
)
finally
:
sys
.
setcheckinterval
(
oldcheckinterval
)
def
testZopeRunConfigure
(
self
):
def
testZopeRunConfigure
(
self
):
old_config
=
getConfiguration
()
old_config
=
getConfiguration
()
try
:
try
:
...
...
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