From 15bb6de9b9f234503d6b86ba1f638e791575fcae Mon Sep 17 00:00:00 2001 From: Dingjun Date: Mon, 7 Aug 2017 14:40:40 +0800 Subject: [PATCH] change connection timeout --- obfssh/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obfssh/ssh.go b/obfssh/ssh.go index 7930179..5da95cd 100644 --- a/obfssh/ssh.go +++ b/obfssh/ssh.go @@ -195,7 +195,7 @@ func main() { conf := &obfssh.Conf{ ObfsMethod: cfg.ObfsMethod, ObfsKey: cfg.ObfsKey, - Timeout: time.Duration(cfg.KeepaliveInterval+5) * time.Second, + Timeout: time.Duration(cfg.KeepaliveInterval*2) * time.Second, KeepAliveInterval: time.Duration(cfg.KeepaliveInterval) * time.Second, KeepAliveMax: cfg.KeepaliveMax, DisableObfsAfterHandshake: cfg.DisableObfsAfterHandshake,