[Zope-Checkins]
SVN: Zope/branches/dc-large_file-branch/lib/python/ZServer/
Move import inside methods so that the ZConfig overrides
actually takes effect.
Sidnei da Silva
sidnei at awkly.org
Wed Nov 3 15:38:05 EST 2004
Log message for revision 28336:
Move import inside methods so that the ZConfig overrides actually takes effect.
Changed:
U Zope/branches/dc-large_file-branch/lib/python/ZServer/FCGIServer.py
U Zope/branches/dc-large_file-branch/lib/python/ZServer/FTPServer.py
U Zope/branches/dc-large_file-branch/lib/python/ZServer/HTTPServer.py
U Zope/branches/dc-large_file-branch/lib/python/ZServer/PCGIServer.py
-=-
Modified: Zope/branches/dc-large_file-branch/lib/python/ZServer/FCGIServer.py
===================================================================
--- Zope/branches/dc-large_file-branch/lib/python/ZServer/FCGIServer.py 2004-11-03 20:27:25 UTC (rev 28335)
+++ Zope/branches/dc-large_file-branch/lib/python/ZServer/FCGIServer.py 2004-11-03 20:38:05 UTC (rev 28336)
@@ -32,7 +32,7 @@
from medusa.counter import counter
from medusa.http_server import compute_timezone_for_log
-from ZServer import CONNECTION_LIMIT, requestCloseOnExec
+from ZServer import requestCloseOnExec
from PubCore import handle
from PubCore.ZEvent import Wakeup
@@ -642,6 +642,7 @@
def readable(self):
+ from ZServer import CONNECTION_LIMIT
return len(asyncore.socket_map) < CONNECTION_LIMIT
Modified: Zope/branches/dc-large_file-branch/lib/python/ZServer/FTPServer.py
===================================================================
--- Zope/branches/dc-large_file-branch/lib/python/ZServer/FTPServer.py 2004-11-03 20:27:25 UTC (rev 28335)
+++ Zope/branches/dc-large_file-branch/lib/python/ZServer/FTPServer.py 2004-11-03 20:38:05 UTC (rev 28336)
@@ -72,7 +72,7 @@
from FTPResponse import make_response
from FTPRequest import FTPRequest
-from ZServer import CONNECTION_LIMIT, requestCloseOnExec
+from ZServer import requestCloseOnExec
from cStringIO import StringIO
import os
@@ -653,6 +653,7 @@
self.ftp_channel_class (self, conn, addr, self.module)
def readable(self):
+ from ZServer import CONNECTION_LIMIT
return len(asyncore.socket_map) < CONNECTION_LIMIT
def listen(self, num):
Modified: Zope/branches/dc-large_file-branch/lib/python/ZServer/HTTPServer.py
===================================================================
--- Zope/branches/dc-large_file-branch/lib/python/ZServer/HTTPServer.py 2004-11-03 20:27:25 UTC (rev 28335)
+++ Zope/branches/dc-large_file-branch/lib/python/ZServer/HTTPServer.py 2004-11-03 20:38:05 UTC (rev 28336)
@@ -52,8 +52,8 @@
from medusa.default_handler import unquote
from asyncore import compact_traceback, dispatcher
-from ZServer import CONNECTION_LIMIT, ZOPE_VERSION, ZSERVER_VERSION
-from ZServer import requestCloseOnExec, LARGE_FILE_THRESHOLD
+from ZServer import ZOPE_VERSION, ZSERVER_VERSION
+from ZServer import requestCloseOnExec
from zLOG import LOG, register_subsystem, BLATHER, INFO, WARNING, ERROR
import DebugLogger
from medusa import logger
@@ -74,6 +74,7 @@
class zhttp_collector:
def __init__(self, handler, request, size):
+ from ZServer import LARGE_FILE_THRESHOLD
self.handler = handler
self.request = request
if size > LARGE_FILE_THRESHOLD:
@@ -407,8 +408,9 @@
requestCloseOnExec(self.socket)
def readable(self):
+ from ZServer import CONNECTION_LIMIT
return self.accepting and \
- len(asyncore.socket_map) < CONNECTION_LIMIT
+ len(asyncore.socket_map) < CONNECTION_LIMIT
def listen(self, num):
# override asyncore limits for nt's listen queue size
Modified: Zope/branches/dc-large_file-branch/lib/python/ZServer/PCGIServer.py
===================================================================
--- Zope/branches/dc-large_file-branch/lib/python/ZServer/PCGIServer.py 2004-11-03 20:27:25 UTC (rev 28335)
+++ Zope/branches/dc-large_file-branch/lib/python/ZServer/PCGIServer.py 2004-11-03 20:38:05 UTC (rev 28336)
@@ -35,7 +35,7 @@
from asyncore import compact_traceback
import ZServer
-from ZServer import CONNECTION_LIMIT, requestCloseOnExec
+from ZServer import requestCloseOnExec
from PubCore import handle
from PubCore.ZEvent import Wakeup
@@ -327,6 +327,7 @@
self.channel_class(self, conn, addr)
def readable(self):
+ from ZServer import CONNECTION_LIMIT
return len(asyncore.socket_map) < CONNECTION_LIMIT
def writable (self):
More information about the Zope-Checkins
mailing list