From 86d3d77a7f15f8dfc81f68add51cba4f84eb591e Mon Sep 17 00:00:00 2001 From: Soff Date: Wed, 1 Jan 2020 19:23:34 +0800 Subject: [PATCH] Chore: increase DNS timeout (#464) --- dns/resolver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/resolver.go b/dns/resolver.go index a3540817..db4d7d04 100644 --- a/dns/resolver.go +++ b/dns/resolver.go @@ -180,7 +180,7 @@ func (r *Resolver) IsFakeIP(ip net.IP) bool { } func (r *Resolver) batchExchange(clients []resolver, m *D.Msg) (msg *D.Msg, err error) { - fast, ctx := picker.WithTimeout(context.Background(), time.Second) + fast, ctx := picker.WithTimeout(context.Background(), time.Second * 5) for _, client := range clients { r := client fast.Go(func() (interface{}, error) {