Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Comment thread
NilanshBansal marked this conversation as resolved.
} 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;
Comment thread
NilanshBansal marked this conversation as resolved.
Comment thread
NilanshBansal marked this conversation as resolved.

/**
* 1 sec is the recommended value as shown in the example here:
Expand Down