From 026f466e73524dbe97e5d4c8245c157ac173e4df Mon Sep 17 00:00:00 2001 From: anakinxc <103552181+anakinxc@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:39:12 +0800 Subject: [PATCH] Disallow gRPC to reuse port --- spu/utils/distributed.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spu/utils/distributed.py b/spu/utils/distributed.py index 88310f98..b59e7389 100644 --- a/spu/utils/distributed.py +++ b/spu/utils/distributed.py @@ -173,6 +173,7 @@ class RPC: OPTIONS = [ ('grpc.max_message_length', 1024 * 1024 * 1024), ('grpc.max_receive_message_length', 1024 * 1024 * 1024), + ('grpc.so_reuseport', 0), ] CHUNK_SIZE = 10 * 1024 * 1024