tun2: be more aggressive about ping timeouts in smux

This commit is contained in:
Cadey Ratio 2017-04-05 15:54:58 -07:00
parent ee51b41f3a
commit 2bda4a8ef8
1 changed files with 3 additions and 0 deletions

View File

@ -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,