Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[STCC-314] Error in start_tcp_server() in /web folder [MW] #233

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions web/jobmonitorserver/jobmonitortcpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,16 +309,16 @@ def run(self):
class JobMonitorTCPServer(TCPServer):
def __init__(self, settings, io_loop=None, ssl_options=None):
_logger.debug('Job Monitor Server started')
max_stream_buffer_size = int(settings["max_stream_buffer_size"]) if "max_stream_buffer_size" in settings else None
read_chunk_size = int(settings["read_chunk_size"]) if "read_chunk_size" in settings else None
super(JobMonitorTCPServer, self).__init__(ssl_options, max_stream_buffer_size, read_chunk_size)
if not io_loop:
io_loop = tornado.ioloop.IOLoop.instance()
self.settings = settings
self.io_loop = io_loop
self.streams = {}
check_zombie_interval = int(settings["check_zombie_interval"])
self.io_loop.add_timeout(datetime.timedelta(seconds=check_zombie_interval), self.close_streams_after_timeout)
max_stream_buffer_size = int(settings["max_stream_buffer_size"]) if "max_stream_buffer_size" in settings else None
read_chunk_size = int(settings["read_chunk_size"]) if "read_chunk_size" in settings else None
super(JobMonitorTCPServer, self).__init__(io_loop, ssl_options, max_stream_buffer_size, read_chunk_size)
self.io_loop.add_timeout(datetime.timedelta(seconds=check_zombie_interval), self.close_streams_after_timeout)

def stop(self):
super(JobMonitorTCPServer, self).stop()
Expand Down