-
Notifications
You must be signed in to change notification settings - Fork 17.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: make go resolver aware of network parameter
Currently, the go resolver always send two DNS queries (A and AAAA) even if tcp4/udp4/ip4 or tcp6/udp6/ip6 is used. This can cause unwanted latencies when making IPv4-only or IPv6-only connections. This change make go resolver aware of network parameter. Now, only one A query is sent when tcp4/udp4/ip4 is used, and vice versa for tcp6/udp6/ip6.
- Loading branch information
1 parent
6ccb5c4
commit 4e50941
Showing
3 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters