Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
canhlinh committed Dec 10, 2018
1 parent 4697e0e commit b99b262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zksocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b99b262

Please sign in to comment.