zmirror: Attempt to receive zephyrs as we send them.

Sometimes the very first message we send isn't received by
python-zephyr; this could be because of our growing a 17-message queue
of zephyrs to service, so let's not do that.

(imported from commit 281bf1807442b6335b05c803b1a47e0a162bef4e)
This commit is contained in:
Tim Abbott 2013-01-02 10:36:47 -05:00
parent 08e1dda50f
commit efd13505e1
1 changed files with 1 additions and 0 deletions

View File

@ -230,6 +230,7 @@ for key, (stream, test) in zhkeys.items():
else: else:
logging.warning("Replaced key %s with %s due to Zephyr server failure." % logging.warning("Replaced key %s with %s due to Zephyr server failure." %
(key, new_key)) (key, new_key))
receive_zephyrs()
receive_zephyrs() receive_zephyrs()
logger.info("Sent Zephyr messages!") logger.info("Sent Zephyr messages!")