Skip to content

Commit

Permalink
fix: add keepalive to gRPC channel (#49)
Browse files Browse the repository at this point in the history
Co-authored-by: larkee <larkee@users.noreply.github.com>
  • Loading branch information
larkee and larkee committed Apr 8, 2020
1 parent 430ca32 commit dfbc656
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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"


Expand Down Expand Up @@ -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(),
)

Expand Down

0 comments on commit dfbc656

Please sign in to comment.