Commit b31bb9b1 authored by Vincent Pelletier's avatar Vincent Pelletier

Document a bit a sleep in the code.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@759 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 14a5bca2
......@@ -417,6 +417,16 @@ class Application(object):
conn.unlock()
self._waitMessage(conn, msg_id, handler=self.primary_bootstrap_handler)
if conn.getUUID() is None:
# Node identification was refused by master.
# Sleep a bit an retry.
# XXX: This should be replaced by:
# - queuing requestNodeIdentification at master side
# - sending the acceptance from master when it becomes
# ready
# Thus removing the need to:
# - needlessly bother the primary master every 5 seconds
# (...per client)
# - have a sleep in the code (yuck !)
sleep(5)
if self.uuid != INVALID_UUID:
# TODO: pipeline those 2 requests
......
Markdown is supported
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