From b99b2622f3e99e4e3fadee98e46318c9d60f794d Mon Sep 17 00:00:00 2001 From: canhlinh Date: Mon, 10 Dec 2018 18:46:26 +0700 Subject: [PATCH] Increase timeout --- zksocket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zksocket.go b/zksocket.go index 876ed8a..c8d9496 100644 --- a/zksocket.go +++ b/zksocket.go @@ -222,7 +222,7 @@ func (s *ZkSocket) createSocket() error { return nil } - conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", s.host, s.port), time.Second) + conn, err := net.DialTimeout("tcp", fmt.Sprintf("%s:%d", s.host, s.port), 3*time.Second) if err != nil { return err }