Skip to content

Commit

Permalink
Merge pull request #25150 from bono007
Browse files Browse the repository at this point in the history
* pr/25150:
  Update copyright of changed file
  Fix defaults for Cassandra's initQueryTimeout and idleTimeout

Closes gh-25150
  • Loading branch information
snicoll committed Feb 10, 2021
2 parents f334b27 + acc8f37 commit 54b9f16
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down 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 54b9f16

Please sign in to comment.