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
7c877db7
Commit
7c877db7
authored
Nov 03, 2004
by
Sidnei da Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move import inside methods so that the ZConfig overrides actually takes effect.
parent
2af37666
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
lib/python/ZServer/FCGIServer.py
lib/python/ZServer/FCGIServer.py
+2
-1
lib/python/ZServer/FTPServer.py
lib/python/ZServer/FTPServer.py
+2
-1
lib/python/ZServer/HTTPServer.py
lib/python/ZServer/HTTPServer.py
+5
-3
lib/python/ZServer/PCGIServer.py
lib/python/ZServer/PCGIServer.py
+2
-1
No files found.
lib/python/ZServer/FCGIServer.py
View file @
7c877db7
...
...
@@ -32,7 +32,7 @@ from medusa import logger
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 @@ class FCGIServer(asyncore.dispatcher):
def
readable
(
self
):
from
ZServer
import
CONNECTION_LIMIT
return
len
(
asyncore
.
socket_map
)
<
CONNECTION_LIMIT
...
...
lib/python/ZServer/FTPServer.py
View file @
7c877db7
...
...
@@ -72,7 +72,7 @@ from medusa import filesys
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 @@ class FTPServer(ftp_server):
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
):
...
...
lib/python/ZServer/HTTPServer.py
View file @
7c877db7
...
...
@@ -52,8 +52,8 @@ from medusa.test import max_sockets
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 @@ header2env={'content-length' : 'CONTENT_LENGTH',
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 @@ class zhttp_server(http_server):
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
...
...
lib/python/ZServer/PCGIServer.py
View file @
7c877db7
...
...
@@ -35,7 +35,7 @@ from medusa.http_server import compute_timezone_for_log
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 @@ class PCGIServer(asyncore.dispatcher):
self
.
channel_class
(
self
,
conn
,
addr
)
def
readable
(
self
):
from
ZServer
import
CONNECTION_LIMIT
return
len
(
asyncore
.
socket_map
)
<
CONNECTION_LIMIT
def
writable
(
self
):
...
...
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