Chore: increase DNS timeout (#464)

This commit is contained in:
gVisor bot 2020-01-01 19:23:34 +08:00
parent be19450819
commit da5b005df8

View file

@ -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) {