Skip to content

Commit

Permalink
Fix defaults for Cassandra's initQueryTimeout and idleTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
onobc authored and snicoll committed Feb 10, 2021
1 parent f334b27 commit 4ef82c4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -270,7 +270,7 @@ public static class Connection {
* Timeout to use for internal queries that run as part of the initialization
* process, just after a connection is opened.
*/
private Duration initQueryTimeout = Duration.ofMillis(500);
private Duration initQueryTimeout = Duration.ofSeconds(5);

public Duration getConnectTimeout() {
return this.connectTimeout;
Expand Down Expand Up @@ -360,7 +360,7 @@ public static class Pool {
/**
* Idle timeout before an idle connection is removed.
*/
private Duration idleTimeout = Duration.ofSeconds(120);
private Duration idleTimeout = Duration.ofSeconds(5);

/**
* Heartbeat interval after which a message is sent on an idle connection to make
Expand Down

0 comments on commit 4ef82c4

Please sign in to comment.