Commit 20f89677 authored by Julien Muchembled's avatar Julien Muchembled

Update comments

parent 2938a7c6
......@@ -136,9 +136,8 @@ class RegistryServer(object):
self.setConfig('version', buffer(self.version))
self.setConfig('last_config', config)
self.sendto(self.prefix, 0)
# The following entry lists values that are base64-encoded.
kw[''] = 'version',
# Example to avoid all nodes to restart at the same time:
# kw['delay_restart'] = 600 * random.random()
kw['version'] = self.version.encode('base64')
self.network_config = zlib.compress(json.dumps(kw), 9)
......
......@@ -554,8 +554,6 @@ class BaseTunnelManager(object):
or not all(crl.isdisjoint(serials.itervalues())
for serials in self._served.itervalues())):
# Wait at least 1 second to broadcast new version to neighbours.
# If re6stnet is too old, don't abort now, because a new version
# may have been installed without restart.
self.selectTimeout(time.time() + 1 + self.cache.delay_restart,
self._restart)
......
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