Skip to content
Permalink
Browse files
fix: add keepalive to gRPC channel (#49)
Co-authored-by: larkee <larkee@users.noreply.github.com>
  • Loading branch information
larkee and larkee committed Apr 8, 2020
1 parent 430ca32 commit dfbc656891c687bc077f811f8490ae92818307f8
Showing with 2 additions and 0 deletions.
  1. +2 −0 google/cloud/spanner_v1/gapic/transports/spanner_grpc_transport.py
@@ -23,6 +23,7 @@
from google.cloud.spanner_v1.proto import spanner_pb2_grpc


_GRPC_KEEPALIVE_MS = 2 * 60 * 1000
_SPANNER_GRPC_CONFIG = "spanner.grpc.config"


@@ -73,6 +74,7 @@ def __init__(
options={
"grpc.max_send_message_length": -1,
"grpc.max_receive_message_length": -1,
"grpc.keepalive_time_ms": _GRPC_KEEPALIVE_MS,
}.items(),
)

0 comments on commit dfbc656

Please sign in to comment.