diff --git a/server/websocket/internal/logic/datatransferlogic.go b/server/websocket/internal/logic/datatransferlogic.go index 3a20cba7..54041b10 100644 --- a/server/websocket/internal/logic/datatransferlogic.go +++ b/server/websocket/internal/logic/datatransferlogic.go @@ -70,15 +70,15 @@ var ( //用户标识的连接(白板用户不存) mapUserConnPool = make(map[string]map[string]struct{}) //key是user_id +"_"+guest_id (val是个普通map,存储这个用户的所有连接标识) //用户标识的连接增删操作队列 - mapUserConnPoolCtlChan = make(chan userConnPoolCtlChanItem, 2000) + mapUserConnPoolCtlChan = make(chan userConnPoolCtlChanItem, 500) //每个websocket连接入口缓冲队列长度 - websocketInChanLen = 1000 + websocketInChanLen = 100 //每个websocket连接出口缓冲队列长度 - websocketOutChanLen = 1000 + websocketOutChanLen = 100 //渲染任务调度(添加任务/删除任务/修改任务属性)缓冲队列长度(该队列用于避免map并发读写冲突) - renderImageTaskCtlChanLen = 500 + renderImageTaskCtlChanLen = 50 //渲染任务缓冲队列长度 - renderChanLen = 500 + renderChanLen = 50 //是否开启debug openDebug = true //允许跨域的origin