Skip to content

Commit

Permalink
Increase the client dial timeout.
Browse files Browse the repository at this point in the history
* Windows and stressed machines require more time to connect; this was causing flappers.
  • Loading branch information
Colin Sullivan committed Jan 6, 2017
1 parent c275ec7 commit 31dc3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func createRouteConn(t tLogger, host string, port int) net.Conn {

func createClientConn(t tLogger, host string, port int) net.Conn {
addr := fmt.Sprintf("%s:%d", host, port)
c, err := net.DialTimeout("tcp", addr, 1*time.Second)
c, err := net.DialTimeout("tcp", addr, 3*time.Second)
if err != nil {
stackFatalf(t, "Could not connect to server: %v\n", err)
}
Expand Down

0 comments on commit 31dc3a7

Please sign in to comment.