mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 05:03:36 +08:00
Set the capacity of clientChan to 10000 (#5647)
This commit is contained in:
@@ -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
|
// 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
|
// 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
|
// clientChansLock to remove the channel and we're stuck writing to it
|
||||||
// 100 is probably overkill
|
messageChan = make(chan *master_pb.KeepConnectedResponse, 10000)
|
||||||
messageChan = make(chan *master_pb.KeepConnectedResponse, 100)
|
|
||||||
|
|
||||||
ms.clientChansLock.Lock()
|
ms.clientChansLock.Lock()
|
||||||
ms.clientChans[clientName] = messageChan
|
ms.clientChans[clientName] = messageChan
|
||||||
|
Reference in New Issue
Block a user