Smack 4.1.0 - ReconnectionManager bug

Hi,

I’m not sure it’s the best place to report a bug…

The following code is wrong:

case RANDOM_INCREASING_DELAY:

if (attempts > 13) {

delay = randomBase * 6 * 5; // between 2.5 and 7.5 minutes (~5 minutes)

}

if (attempts > 7) {

delay = randomBase * 6; // between 30 and 90 seconds (~1 minutes)

}

delay = randomBase; // 10 seconds

break;

The delay is always equals to randomBase.

Thanks for reporting. This was introduced in Add the possibility to choose reconnection policy · igniterealtime/Smack@a7616f2 · GitHub

Created SMACK-660. Should be fixed with Fix ReconnectionManager RANDOM_INCREASING_DELAY policy · Flowdalic/Smack@a4be67f · GitHub