From 273396aedb735f73d810aba43e2d95bf1a86e70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Andreassa?= Date: Tue, 13 Jan 2026 09:29:59 -0800 Subject: [PATCH] feat: Set default keepalive duration to 120 seconds --- google-cloud-spanner/lib/google/cloud/spanner/pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-spanner/lib/google/cloud/spanner/pool.rb b/google-cloud-spanner/lib/google/cloud/spanner/pool.rb index 5f11f5d7..e8afa873 100644 --- a/google-cloud-spanner/lib/google/cloud/spanner/pool.rb +++ b/google-cloud-spanner/lib/google/cloud/spanner/pool.rb @@ -49,7 +49,7 @@ class Pool # @param threads [::Integer, nil] Number of threads in the thread pool that is used for keepalive and # release session actions. If `nil` the Pool will choose a reasonable default. # @private - def initialize service, session_creation_options, min: 10, max: 100, keepalive: 1800, + def initialize service, session_creation_options, min: 10, max: 100, keepalive: 120, fail: true, threads: nil @service = service @session_creation_options = session_creation_options