update kcp
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user