Skip to content

Commit

Permalink
Use NONE Connection validation.
Browse files Browse the repository at this point in the history
This setting does not make the driver block and is implemented as a simple lifecycle check.

This is exactly what we do with other clients (Pg, MySQL, ...etc).

Signed-off-by: Thomas Segismont <[email protected]>
  • Loading branch information
tsegismont committed Aug 21, 2024
1 parent a49eeea commit 0cc2ddf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public boolean isSsl() {
@Override
public boolean isValid() {
try {
return connection.isValid(OracleConnection.ConnectionValidation.SOCKET, 0);
return connection.isValid(OracleConnection.ConnectionValidation.NONE, 0);
} catch (SQLException e) {
log.trace("Failed to validate connection", e);
return false;
Expand Down

0 comments on commit 0cc2ddf

Please sign in to comment.