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 a29f3b78b5
commit db381f431b

View file

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