Hi, it seems that the http client automatically performs a DNS lookup when an 
existing connection is terminated by the server. I simulated it via changing 
the IP address in /etc/hosts.

Can someone point me to the code where this logic is checked?

I am looking at https://golang.org/src/net/http/transport.go 
<https://golang.org/src/net/http/transport.go> but haven’t found something yet 
- quite a beginner here.

Thanks,
Amit.

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/748676D6-1E21-4E78-BF3C-87ADC0D8E0E2%40gmail.com.

Reply via email to