aboutsummaryrefslogtreecommitdiff
path: root/middleware/httpproxy/google.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/httpproxy/google.go')
-rw-r--r--middleware/httpproxy/google.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/httpproxy/google.go b/middleware/httpproxy/google.go
index 78b5ea864..72e8b5a7e 100644
--- a/middleware/httpproxy/google.go
+++ b/middleware/httpproxy/google.go
@@ -73,7 +73,7 @@ func (g *google) Exchange(req *dns.Msg) (*dns.Msg, error) {
timeout := addr.FailTimeout
if timeout == 0 {
- timeout = 10 * time.Second
+ timeout = 5 * time.Second
}
atomic.AddInt32(&addr.Fails, 1)
go func(host *proxy.UpstreamHost, timeout time.Duration) {
@@ -185,7 +185,7 @@ func (g *google) lookup(r *dns.Msg) ([]string, error) {
timeout := host.FailTimeout
if timeout == 0 {
- timeout = 10 * time.Second
+ timeout = 7 * time.Second
}
atomic.AddInt32(&host.Fails, 1)
go func(host *proxy.UpstreamHost, timeout time.Duration) {