Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -692,12 +692,11 @@ public void datasourceDestroy(ConnectionContext<ConnectionPool> connectionContex
*/
sshTunnelContext.getServerSocket().close();
sshTunnelContext.getSshClient().disconnect();
sshTunnelContext.getThread().stop();
sshTunnelContext.getThread().interrupt(); // Gracefully interrupt the thread
} catch (IOException e) {
log.error("Failed to destroy SSH tunnel context: " + e.getMessage());
}
}

return Mono.empty();
})
.subscribeOn(scheduler)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

public class MySqlDatasourceUtils {

public static int MAX_CONNECTION_POOL_SIZE = 5;
public static int MAX_CONNECTION_POOL_SIZE = 20;

/**
* 1 sec is the recommended value as shown in the example here:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class ConnectionPoolConfigCETest {
@Test
public void verifyGetMaxConnectionPoolSizeProvidesDefaultValue() {
// this is same as default
Integer connectionPoolMaxSize = 5;
Integer connectionPoolMaxSize = 20;

Mono<Integer> connectionPoolMaxSizeMono = connectionPoolConfig.getMaxConnectionPoolSize();
StepVerifier.create(connectionPoolMaxSizeMono).assertNext(poolSize -> {
Expand Down