mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-11 04:50:56 +00:00
fix: memory leak due to smux keep-alive
This commit is contained in:
parent
5e11263ea0
commit
e9e2a2b269
1 changed files with 4 additions and 1 deletions
|
@ -62,7 +62,10 @@ func NewGostWebsocket(ctx context.Context, conn net.Conn, option *Option) (net.C
|
|||
}
|
||||
|
||||
if option.Mux {
|
||||
session, err := smux.Client(conn, nil)
|
||||
config := smux.DefaultConfig()
|
||||
config.KeepAliveDisabled = true
|
||||
|
||||
session, err := smux.Client(conn, config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue