Skip to content

Commit 54b9f16

Browse files
committed
Merge pull request #25150 from bono007
* pr/25150: Update copyright of changed file Fix defaults for Cassandra's initQueryTimeout and idleTimeout Closes gh-25150
2 parents f334b27 + acc8f37 commit 54b9f16

File tree

1 file changed

+3
-3
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra/CassandraProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -270,7 +270,7 @@ public static class Connection {
270270
* Timeout to use for internal queries that run as part of the initialization
271271
* process, just after a connection is opened.
272272
*/
273-
private Duration initQueryTimeout = Duration.ofMillis(500);
273+
private Duration initQueryTimeout = Duration.ofSeconds(5);
274274

275275
public Duration getConnectTimeout() {
276276
return this.connectTimeout;
@@ -360,7 +360,7 @@ public static class Pool {
360360
/**
361361
* Idle timeout before an idle connection is removed.
362362
*/
363-
private Duration idleTimeout = Duration.ofSeconds(120);
363+
private Duration idleTimeout = Duration.ofSeconds(5);
364364

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

0 commit comments

Comments
 (0)