Update timeout: 1 -> 10

pull/16924/head
Youngchan Kim 6 years ago
parent c4c112bc50
commit 0f9733eb85
  1. 4
      examples/python/helloworld/greeter_client_with_options.py

@ -33,8 +33,8 @@ def run():
('grpc.enable_retries', 0),
('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)
# Timeout in seconds.
response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'), timeout=10)
print("Greeter client received: " + response.message)

Loading…
Cancel
Save