Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 26be103

Browse files
authored
fix: set gRPC keep-alive to 120 seconds (#339)
1 parent fb26abe commit 26be103

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public GapicSpannerRpc(final SpannerOptions options) {
309309

310310
// Set a keepalive time of 120 seconds to help long running
311311
// commit GRPC calls succeed
312-
.setKeepAliveTime(Duration.ofSeconds(GRPC_KEEPALIVE_SECONDS * 1000))
312+
.setKeepAliveTime(Duration.ofSeconds(GRPC_KEEPALIVE_SECONDS))
313313

314314
// Then check if SpannerOptions provides an InterceptorProvider. Create a default
315315
// SpannerInterceptorProvider if none is provided

0 commit comments

Comments
 (0)