add WriteBufferCount; set both ReadBufferCount and WriteBufferCount to 256

This commit is contained in:
aler9
2022-02-19 15:09:00 +01:00
parent 86fb4181c7
commit 0515539831
4 changed files with 30 additions and 8 deletions

View File

@@ -831,7 +831,7 @@ func (ss *ServerSession) handleRequest(sc *ServerConn, req *base.Request) (*base
// inside the callback.
if ss.state != ServerSessionStatePlay &&
*ss.setuppedTransport != TransportUDPMulticast {
ss.writeBuffer = ringbuffer.New(uint64(ss.s.ReadBufferCount))
ss.writeBuffer = ringbuffer.New(uint64(ss.s.WriteBufferCount))
}
res, err := sc.s.Handler.(ServerHandlerOnPlay).OnPlay(&ServerHandlerOnPlayCtx{