服务端连接优化

This commit is contained in:
hahwu 2026-01-04 12:08:36 +08:00
parent 608d7d4168
commit cf8b5f9c23

View File

@ -10,7 +10,7 @@ var (
LogFlag = log.LstdFlags | log.Lmicroseconds
// gate conf
PendingWriteNum = 64 // 客户端链接的写入消息队列长度
PendingWriteNum = 2000 // 客户端链接的写入消息队列长度
MaxMsgLen uint32 = 65536 // 16KB
HTTPTimeout = 10 * time.Second
LenMsgLen = 2