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
6a2ca320
Commit
6a2ca320
authored
Aug 02, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a kill_zombies fix that is not part of the official medusa sources.
parent
5c14b960
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ZServer/medusa/http_server.py
ZServer/medusa/http_server.py
+2
-2
lib/python/ZServer/medusa/http_server.py
lib/python/ZServer/medusa/http_server.py
+2
-2
No files found.
ZServer/medusa/http_server.py
View file @
6a2ca320
...
...
@@ -9,7 +9,7 @@
# interested in using this software in a commercial context, or in
# purchasing support, please contact the author.
RCS_ID
=
'$Id: http_server.py,v 1.
8 1999/07/20 16:53:49
amos Exp $'
RCS_ID
=
'$Id: http_server.py,v 1.
9 1999/08/02 17:41:21
amos Exp $'
# python modules
import
os
...
...
@@ -380,7 +380,7 @@ class http_channel (asynchat.async_chat):
def
kill_zombies
(
self
):
now
=
int
(
time
.
time
())
for
channel
in
asyncore
.
socket_map
.
keys
():
if
channel
.
__class__
==
http_channel
:
if
channel
.
__class__
==
self
.
__class__
:
if
(
now
-
channel
.
creation_time
)
>
channel
.
zombie_timeout
:
channel
.
close
()
...
...
lib/python/ZServer/medusa/http_server.py
View file @
6a2ca320
...
...
@@ -9,7 +9,7 @@
# interested in using this software in a commercial context, or in
# purchasing support, please contact the author.
RCS_ID
=
'$Id: http_server.py,v 1.
8 1999/07/20 16:53:49
amos Exp $'
RCS_ID
=
'$Id: http_server.py,v 1.
9 1999/08/02 17:41:21
amos Exp $'
# python modules
import
os
...
...
@@ -380,7 +380,7 @@ class http_channel (asynchat.async_chat):
def
kill_zombies
(
self
):
now
=
int
(
time
.
time
())
for
channel
in
asyncore
.
socket_map
.
keys
():
if
channel
.
__class__
==
http_channel
:
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