sleep for 200ms for minimum 1s, 6s for default 30s connectionTimeout.

pull/502/head
Nitin 9 years ago
parent 8eaaa7fdcd
commit 6eb0d93985

@ -573,7 +573,7 @@ public class HikariPool extends PoolBase implements HikariPoolMXBean, IBagStateL
// failed to get connection from db, sleep and retry // failed to get connection from db, sleep and retry
quietlySleep(sleepBackoff); quietlySleep(sleepBackoff);
sleepBackoff = Math.min(connectionTimeout / 4, (long) (sleepBackoff * 1.3)); sleepBackoff = Math.min(connectionTimeout / 5, (long) (sleepBackoff * 1.3));
} }
// Pool is suspended or shutdown or at max size // Pool is suspended or shutdown or at max size
return Boolean.FALSE; return Boolean.FALSE;

Loading…
Cancel
Save