Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
allow multithreading - fix zopefoundation/Zope#665
Browse files Browse the repository at this point in the history
  • Loading branch information
d-maurer committed Jul 18, 2019
1 parent d1f3789 commit 3ae368e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog
4.1 (unreleased)
----------------

- Fix: ``zserver-threads`` configuration option has been ineffective due
to too early import of the configuration variable
(`Zope#665 <https://github.com/zopefoundation/Zope/issues/665>`_).


4.0.1 (2019-05-17)
------------------
Expand All @@ -14,7 +18,7 @@ Changelog
4.0 (2019-05-08)
----------------

Changes since 3.0:
ZChanges since 3.0:

- Broke out ZServer and related code from Zope core project.

Expand Down
5 changes: 1 addition & 4 deletions src/ZServer/PubCore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
#
##############################################################################

from ZServer.Zope2.Startup.config import ( # NOQA
setNumberOfThreads,
ZSERVER_THREADS as _n,
)
from ZServer.PubCore import ZRendezvous

_handle = None
Expand All @@ -24,6 +20,7 @@ def handle(*args, **kw):
global _handle

if _handle is None:
from ZServer.Zope2.Startup.config import ZSERVER_THREADS as _n
_handle = ZRendezvous.ZRendevous(_n).handle

return _handle(*args, **kw)

0 comments on commit 3ae368e

Please sign in to comment.