tun2: be more aggressive about ping timeouts in smux
This commit is contained in:
parent
ee51b41f3a
commit
2bda4a8ef8
|
@ -79,6 +79,9 @@ func NewServer(cfg *ServerConfig) (*Server, error) {
|
|||
cfg.SmuxConf = smux.DefaultConfig()
|
||||
}
|
||||
|
||||
cfg.SmuxConf.KeepAliveInterval = time.Second
|
||||
cfg.SmuxConf.KeepAliveTimeout = 15 * time.Second
|
||||
|
||||
server := &Server{
|
||||
cfg: cfg,
|
||||
|
||||
|
|
Loading…
Reference in New Issue