Skip to content
Permalink
Browse files
fix: set gRPC keep-alive to 120 seconds (#339)
  • Loading branch information
olavloite committed Jul 14, 2020
1 parent fb26abe commit 26be103da1117c4940550fad1672c66e6edfbdb3
Showing with 1 addition and 1 deletion.
  1. +1 −1 google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java
@@ -309,7 +309,7 @@ public GapicSpannerRpc(final SpannerOptions options) {

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

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

0 comments on commit 26be103

Please sign in to comment.