Commit f3ddf4ee authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[bcpapi][client] Remove wrong warning

The BEAT computation being fully asynchronous, the client does
not expect immediate reply to its requests. Therefor this
warning is misleading.
parent b23dfc04
......@@ -83,11 +83,13 @@ class BeatComputationClient(object):
def recv(self):
"""Returns the reply message or None if there was no reply."""
try:
items = self.poller.poll(self.timeout)
except KeyboardInterrupt:
return # interrupted
return None # interrupted
received = None
if items:
# if we got a reply, process it
msg = self.client.recv_multipart()
......@@ -103,6 +105,6 @@ class BeatComputationClient(object):
assert BCP.BCPC_CLIENT == header # nosec
msg.pop(0) # service, not used
return msg
else:
logger.warn("W: permanent error, abandoning request")
received = msg
return received
Supports Markdown
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