aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/python/helloworld/greeter_client_with_options.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python/helloworld/greeter_client_with_options.py')
-rw-r--r--examples/python/helloworld/greeter_client_with_options.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/helloworld/greeter_client_with_options.py b/examples/python/helloworld/greeter_client_with_options.py
index 61dd138ada..11f128eee7 100644
--- a/examples/python/helloworld/greeter_client_with_options.py
+++ b/examples/python/helloworld/greeter_client_with_options.py
@@ -31,7 +31,7 @@ def run():
target='localhost:50051',
options=[('grpc.lb_policy_name', 'pick_first'),
('grpc.enable_retries', 0),
- ('grpc.keepalive_timeout_ms', 10)]) as channel:
+ ('grpc.keepalive_timeout_ms', 10000)]) as channel:
stub = helloworld_pb2_grpc.GreeterStub(channel)
# timeout in second
response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'), timeout=1)