Commit 6a2ca320 authored by Amos Latteier's avatar Amos Latteier

Added a kill_zombies fix that is not part of the official medusa sources.

parent 5c14b960
......@@ -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()
......
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment