send heartbeat while waiting for control to finish
This commit is contained in:
parent
029068b259
commit
1c8d4a1d57
|
@ -76,7 +76,8 @@ class MeasurementHandler(socketserver.BaseRequestHandler):
|
||||||
# TODO this assumes that we wait only for at most one response at a time
|
# TODO this assumes that we wait only for at most one response at a time
|
||||||
# we could add some kind of reference here to handle multiple responses (e.g. id of the response to wait for)
|
# we could add some kind of reference here to handle multiple responses (e.g. id of the response to wait for)
|
||||||
while self.server.response_queue.empty():
|
while self.server.response_queue.empty():
|
||||||
time.sleep(0.1)
|
time.sleep(0.2)
|
||||||
|
self.request.sendall(b'.\n')
|
||||||
pass
|
pass
|
||||||
reply = self.server.response_queue.get()
|
reply = self.server.response_queue.get()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user