Closed GoogleCodeExporter closed 8 years ago
This is one suggestion for the change:
long delay = (long) (Math.pow(8, qa.getReconnectCount()) * Math.random())
Original comment by greg...@gmail.com
on 25 Aug 2009 at 4:32
I plotted a few and I kind of like:
// ^ means pow here, 1000 converts it to millis
y = min(30, 2^x) * 1000
This curve doesn't seem too step, but does terminate at 30s.
Original comment by dsalli...@gmail.com
on 6 Sep 2009 at 7:37
sounds good, the only thing w/ this is that once you've reached reconnect count
greater than 4 -- it's becomes a constant 30sec until the node returns back to
life.
it'll be great if MAX_DELAY was configurable.
Original comment by greg...@gmail.com
on 7 Sep 2009 at 4:48
Great. I just committed the new formula and a configurable max delay. I think
I'll
finalize 2.4 with this stuff.
Original comment by dsalli...@gmail.com
on 13 Oct 2009 at 8:45
Original issue reported on code.google.com by
greg...@gmail.com
on 25 Aug 2009 at 12:43