Skip to content

Commit

Permalink
increase grpc msg limit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCheema committed Nov 12, 2024
1 parent 1946373 commit 4c98108
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exo/networking/grpc/grpc_peer_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ def device_capabilities(self) -> DeviceCapabilities:

async def connect(self):
if self.channel is None:
self.channel = grpc.aio.insecure_channel(self.address, options=[("grpc.max_metadata_size", 32*1024*1024)])
self.channel = grpc.aio.insecure_channel(self.address, options=[
("grpc.max_metadata_size", 32*1024*1024),
('grpc.max_receive_message_length', 32*1024*1024),
('grpc.max_send_message_length', 32*1024*1024)
])
self.stub = node_service_pb2_grpc.NodeServiceStub(self.channel)
await self.channel.channel_ready()

Expand Down

0 comments on commit 4c98108

Please sign in to comment.