diff --git a/python/keepsake/daemon.py b/python/keepsake/daemon.py index 33aa57d0..d6bc3f55 100644 --- a/python/keepsake/daemon.py +++ b/python/keepsake/daemon.py @@ -115,7 +115,10 @@ def __init__(self, project, socket_path=None, debug=False): self.stderr_thread = start_wrapped_pipe(self.process.stderr, sys.stderr) atexit.register(self.cleanup) - self.channel = grpc.insecure_channel("unix://" + self.socket_path) + # set unlimited message received length, + # options from https://github.com/grpc/grpc/blob/v1.44.x/include/grpc/impl/codegen/grpc_types.h + channel_options = [("grpc.max_receive_message_length", -1)] + self.channel = grpc.insecure_channel("unix://" + self.socket_path, options=channel_options) self.stub = DaemonStub(self.channel) TIMEOUT_SEC = 15