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
ec2da131
Commit
ec2da131
authored
Jan 14, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust for changes to medusa's asyncore.socket_map.
parent
5e529dcf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
ZServer/FTPServer.py
ZServer/FTPServer.py
+2
-2
ZServer/HTTPServer.py
ZServer/HTTPServer.py
+1
-1
lib/python/ZServer/FTPServer.py
lib/python/ZServer/FTPServer.py
+2
-2
lib/python/ZServer/HTTPServer.py
lib/python/ZServer/HTTPServer.py
+1
-1
No files found.
ZServer/FTPServer.py
View file @
ec2da131
...
...
@@ -586,7 +586,7 @@ class FTPLimiter:
total
=
0
class_total
=
0
if
channel
.
anonymous
:
for
existing_channel
in
asyncore
.
socket_map
.
key
s
():
for
existing_channel
in
asyncore
.
socket_map
.
value
s
():
if
(
hasattr
(
existing_channel
,
'server'
)
and
existing_channel
.
server
is
channel
.
server
):
total
=
total
+
1
...
...
@@ -595,7 +595,7 @@ class FTPLimiter:
if
class_total
>
self
.
anon_limit
:
return
None
else
:
for
existing_channel
in
asyncore
.
socket_map
.
key
s
():
for
existing_channel
in
asyncore
.
socket_map
.
value
s
():
if
(
hasattr
(
existing_channel
,
'server'
)
and
existing_channel
.
server
is
channel
.
server
):
total
=
total
+
1
...
...
ZServer/HTTPServer.py
View file @
ec2da131
...
...
@@ -364,7 +364,7 @@ class zhttp_channel(http_channel):
def
kill_zombies
(
self
):
now
=
int
(
time
.
time
())
for
channel
in
asyncore
.
socket_map
.
key
s
():
for
channel
in
asyncore
.
socket_map
.
value
s
():
if
channel
.
__class__
==
self
.
__class__
:
if
(
now
-
channel
.
creation_time
)
>
channel
.
zombie_timeout
:
channel
.
close
()
...
...
lib/python/ZServer/FTPServer.py
View file @
ec2da131
...
...
@@ -586,7 +586,7 @@ class FTPLimiter:
total
=
0
class_total
=
0
if
channel
.
anonymous
:
for
existing_channel
in
asyncore
.
socket_map
.
key
s
():
for
existing_channel
in
asyncore
.
socket_map
.
value
s
():
if
(
hasattr
(
existing_channel
,
'server'
)
and
existing_channel
.
server
is
channel
.
server
):
total
=
total
+
1
...
...
@@ -595,7 +595,7 @@ class FTPLimiter:
if
class_total
>
self
.
anon_limit
:
return
None
else
:
for
existing_channel
in
asyncore
.
socket_map
.
key
s
():
for
existing_channel
in
asyncore
.
socket_map
.
value
s
():
if
(
hasattr
(
existing_channel
,
'server'
)
and
existing_channel
.
server
is
channel
.
server
):
total
=
total
+
1
...
...
lib/python/ZServer/HTTPServer.py
View file @
ec2da131
...
...
@@ -364,7 +364,7 @@ class zhttp_channel(http_channel):
def
kill_zombies
(
self
):
now
=
int
(
time
.
time
())
for
channel
in
asyncore
.
socket_map
.
key
s
():
for
channel
in
asyncore
.
socket_map
.
value
s
():
if
channel
.
__class__
==
self
.
__class__
:
if
(
now
-
channel
.
creation_time
)
>
channel
.
zombie_timeout
:
channel
.
close
()
...
...
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