Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Commit

Permalink
discovery: increase default connection timeout
Browse files Browse the repository at this point in the history
This commit increases default connection timeout from 5s to 20s,
in order to gracefully accomodate for retrials. This will help in
overcoming soft-failure cases, like skipping a single faulty
resolvers in resolv.conf.

This is still a quite aggressive timeout, well below the Linux
timeout of 127s for new TCP connections.
  • Loading branch information
lucab committed Aug 2, 2016
1 parent b5e16aa commit 8ab9e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
type InsecureOption int

const (
defaultDialTimeout = 5 * time.Second
defaultDialTimeout = 20 * time.Second
)

const (
Expand Down

0 comments on commit 8ab9e3e

Please sign in to comment.