From 6eb0d93985e7d7664c0dc3d93c8f386070ca3ef8 Mon Sep 17 00:00:00 2001 From: Nitin Date: Sat, 21 Nov 2015 13:04:46 +0530 Subject: [PATCH] sleep for 200ms for minimum 1s, 6s for default 30s connectionTimeout. --- src/main/java/com/zaxxer/hikari/pool/HikariPool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/zaxxer/hikari/pool/HikariPool.java b/src/main/java/com/zaxxer/hikari/pool/HikariPool.java index 3d7242f8..ccec3541 100644 --- a/src/main/java/com/zaxxer/hikari/pool/HikariPool.java +++ b/src/main/java/com/zaxxer/hikari/pool/HikariPool.java @@ -573,7 +573,7 @@ public class HikariPool extends PoolBase implements HikariPoolMXBean, IBagStateL // failed to get connection from db, sleep and retry 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 return Boolean.FALSE;