update kcp

This commit is contained in:
ginuerzh
2022-04-13 21:30:30 +08:00
parent b0859bcebf
commit 65b44b0790
6 changed files with 218 additions and 55 deletions

View File

@ -146,7 +146,9 @@ func (l *kcpListener) mux(conn net.Conn) {
defer conn.Close()
smuxConfig := smux.DefaultConfig()
smuxConfig.MaxReceiveBuffer = l.md.config.SockBuf
smuxConfig.Version = l.md.config.SmuxVer
smuxConfig.MaxReceiveBuffer = l.md.config.SmuxBuf
smuxConfig.MaxStreamBuffer = l.md.config.StreamBuf
smuxConfig.KeepAliveInterval = time.Duration(l.md.config.KeepAlive) * time.Second
if !l.md.config.NoComp {