net/http client about host, ip and connection?

64 views
Skip to first unread message

xie cui

unread,
Oct 28, 2020, 6:18:44 AM10/28/20
to golang-nuts
there a domain name domainA, has two ip address let's name ip1, ip2, when we use http client in golang to send a request, how it pickup ip address? it will use ip1 or ip2, what 's the stragegy? after many request send, the client must hold some connections to ip1, ip2 in connection pool, at the time, when send a request, what's the stragegy to choose connection from connection pool? 
Reply all
Reply to author
Forward
0 new messages