diff --git a/python/grpcdemo_client.py b/python/grpcdemo_client.py index 4d2c0c3..95a9158 100644 --- a/python/grpcdemo_client.py +++ b/python/grpcdemo_client.py @@ -5,6 +5,7 @@ import grpcdemo_pb2_grpc import sys +import time PORTNO = 6000 TIMEOUT = 30 @@ -14,7 +15,8 @@ stub = grpcdemo_pb2_grpc.HostCommandStub(channel) response = stub.runcommand.future(grpcdemo_pb2.Command(command=sys.argv[1]), TIMEOUT) - while not response.done: + while not response.done(): + print("Waiting ...") time.sleep(2) print(response.result()) diff --git a/python/grpcdemo_server.py b/python/grpcdemo_server.py index 8335840..81e5dcf 100644 --- a/python/grpcdemo_server.py +++ b/python/grpcdemo_server.py @@ -9,7 +9,7 @@ import subprocess -DELAY = 5 +DELAY = 6 ONE_DAY = 60 * 60 * 24 # Sleep time in seconds PORTNO = 6000