Merge "User a more accurate max_delay for reconnects"

This commit is contained in:
Jenkins 2014-02-26 02:14:30 +00:00 committed by Gerrit Code Review
commit 7564e2cf47

@ -523,7 +523,7 @@ class Connection(object):
"Sleeping %(delay)s seconds") % msg_dict
LOG.error(msg)
time.sleep(delay)
delay = min(2 * delay, 60)
delay = min(delay + 1, 5)
else:
LOG.info(_('Connected to AMQP server on %s'), broker)
break