I understand now. If the first IP fails, it uses the next one and so on until it runs out of IPs or the timeout occurs.
On Tuesday, September 27, 2016 at 5:23:18 PM UTC-4, Anmol Sethi wrote: > > For https://godoc.org/net#Dialer , it says "When dialing a name with > multiple IP addresses, the timeout may be divided between them." > > Why? Wouldn't the name still be resolved to a single IP? > > E.g. if I have 5 IPs for example.com, one would be selected and used. Why > would the timeout need to be divided among them? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
