updated tcp handler to not timeout and block waiting for messages
This commit is contained in:
parent
ee5bbdd949
commit
0e38304b18
1 changed files with 2 additions and 5 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue