Skip to content

Commit

Permalink
Skip Connection::setNetworkTimeout if PoolBase::shutdownNetworkTimeou…
Browse files Browse the repository at this point in the history
…tExecutor is called

Fix brettwooldridgeGH-2130
  • Loading branch information
quaff committed Nov 27, 2023
1 parent b40e684 commit 62e4c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/zaxxer/hikari/pool/PoolBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ abstract class PoolBase
private static final int MINIMUM_LOGIN_TIMEOUT = Integer.getInteger("com.zaxxer.hikari.minimumLoginTimeoutSecs", 1);

private int networkTimeout;
private int isNetworkTimeoutSupported;
private volatile int isNetworkTimeoutSupported;
private int isQueryTimeoutSupported;
private int defaultTransactionIsolation;
private int transactionIsolation;
Expand Down Expand Up @@ -243,6 +243,7 @@ void resetConnectionState(final Connection connection, final ProxyConnection pro

void shutdownNetworkTimeoutExecutor()
{
isNetworkTimeoutSupported = UNINITIALIZED;
if (netTimeoutExecutor instanceof ThreadPoolExecutor) {
((ThreadPoolExecutor) netTimeoutExecutor).shutdownNow();
}
Expand Down

0 comments on commit 62e4c0b

Please sign in to comment.