Don't reset isNetworkTimeoutSupported here, but do log a warning on exception

2.3.0
Brett Wooldridge 10 years ago
parent c3043d8f9d
commit 937923666e

@ -52,7 +52,7 @@ public final class PoolUtilities
setNetworkTimeout(connection, TimeUnit.SECONDS.toMillis(30), true);
connection.close();
}
catch (Exception e) {
catch (Throwable e) {
LOGGER.debug("{} - Exception closing connection {}", poolName, connection.toString(), e);
}
}
@ -212,7 +212,7 @@ public final class PoolUtilities
connection.setNetworkTimeout(executorService, (int) timeoutMs);
}
catch (Throwable e) {
isNetworkTimeoutSupported = false;
LOGGER.warn("Unable to reset network timeout for connection {} in pool {}", connection.toString(), poolName, e);
}
}
}

Loading…
Cancel
Save