updated tcp handler to not timeout and block waiting for messages

This commit is contained in:
Blake J. Harnden 2018-03-16 13:01:05 -07:00
parent ee5bbdd949
commit 0e38304b18

View file

@ -426,11 +426,8 @@ class CoreRequestHandler(SocketServer.BaseRequestHandler):
:return: nothing
"""
while not self.done:
try:
message = self.message_queue.get(timeout=5)
self.handle_message(message)
except Queue.Empty:
logger.debug("timeout getting message")
message = self.message_queue.get()
self.handle_message(message)
def handle_message(self, message):
"""