-
Notifications
You must be signed in to change notification settings - Fork 916
Adds DNS resolver configuration option for ApacheHttpClient #2834
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
Conversation
@@ -0,0 +1,6 @@ | |||
{ | |||
"category": "AWS SDK for Java v2", |
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.
Since this is specific to Apache, we should change this to the Apache client
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.
ok.
overrideDnsResolver("sad.local.host"); | ||
} | ||
|
||
private void overrideDnsResolver(String hostName) throws IOException { |
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.
hostName
looks unused
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.
will take a look
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.
It's used for the URI a bit further down
@@ -123,4 +126,23 @@ public void credentialProviderCanBeUsedWithProxy() { | |||
.credentialsProvider(Mockito.mock(CredentialsProvider.class)) | |||
.build(); | |||
} | |||
|
|||
@Test | |||
public void dnsResolverCanBeUsed() { |
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.
can we add a test that if the caller explicitly sets to null we use the default resolver?
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.
yes
12227be
to
bd68a87
Compare
SonarCloud Quality Gate failed. |
Motivation and Context
Implements a feature requested in #2627
Description
Allows users to set a custom DNS resolver to be used for the Apache Http Client.
Types of changes
Checklist
mvn install
succeedsLicense