Skip to content

Commit

Permalink
Maj client max size
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Sep 17, 2024
1 parent bf5cae1 commit dd7980e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/grpcClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def __init__(self, ip, port, devMode):

credentials = grpc.ssl_channel_credentials(root_certs)
if devMode:
self.channel = grpc.secure_channel(ip + ':' + str(port), credentials, options=(('grpc.ssl_target_name_override', "localhost",),))
self.channel = grpc.secure_channel(ip + ':' + str(port), credentials, options=[('grpc.ssl_target_name_override', "localhost",), ('grpc.max_send_message_length', 512 * 1024 * 1024), ('grpc.max_receive_message_length', 512 * 1024 * 1024)])
else:
self.channel = grpc.secure_channel(ip + ':' + str(port), credentials)
self.channel = grpc.secure_channel(ip + ':' + str(port), credentials, options=[('grpc.max_send_message_length', 512 * 1024 * 1024), ('grpc.max_receive_message_length', 512 * 1024 * 1024)])
grpc.channel_ready_future(self.channel).result()
self.stub = TeamServerApi_pb2_grpc.TeamServerApiStub(self.channel)

Expand Down

0 comments on commit dd7980e

Please sign in to comment.