From d8da4bbaa713db935514b74f44b5a498bbe5ad7e Mon Sep 17 00:00:00 2001 From: "steve.wei" Date: Wed, 5 Jun 2024 20:41:46 +0800 Subject: [PATCH] Set the capacity of clientChan to 10000 (#5647) --- weed/server/master_grpc_server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weed/server/master_grpc_server.go b/weed/server/master_grpc_server.go index 91f69fef4..c8fe053fa 100644 --- a/weed/server/master_grpc_server.go +++ b/weed/server/master_grpc_server.go @@ -361,8 +361,7 @@ func (ms *MasterServer) addClient(filerGroup, clientType string, clientAddress p // the KeepConnected loop is no longer listening on this channel but we're // trying to send to it in SendHeartbeat and so we can't lock the // clientChansLock to remove the channel and we're stuck writing to it - // 100 is probably overkill - messageChan = make(chan *master_pb.KeepConnectedResponse, 100) + messageChan = make(chan *master_pb.KeepConnectedResponse, 10000) ms.clientChansLock.Lock() ms.clientChans[clientName] = messageChan