-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix][client] Prevent DNS reverse lookup when physical address is an IP address #19028
[fix][client] Prevent DNS reverse lookup when physical address is an IP address #19028
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19028 +/- ##
============================================
- Coverage 49.85% 45.35% -4.50%
- Complexity 8658 10898 +2240
============================================
Files 500 769 +269
Lines 54930 74180 +19250
Branches 5867 7981 +2114
============================================
+ Hits 27386 33648 +6262
- Misses 24464 36764 +12300
- Partials 3080 3768 +688
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I cherry picked this change to older branches because it was going to be introduced by #19327. |
…IP address (apache#19028) (cherry picked from commit d8569cd) (cherry picked from commit 5385f3b)
Motivation
A call to java.net.InetSocketAddress#getHostName will trigger a reverse DNS lookup when the physical address is an IP address. This is not desired since the DNS resolver will be blocking execution.
Modifications
Use java.net.InetSocketAddress#getHostString to use the address passed as input (host string or ip address).
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: lhotari#120