Skip to content
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

HTTPCLIENT-2314: Handle gracefully a failure of DnsResolver to return a list of resolved addresses #533

Merged
merged 5 commits into from
Jan 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Throwing Exception in case no host was found
  • Loading branch information
phax committed Jan 7, 2024
commit eca6190ae131bb705fd4a4d95907c44616521760
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void connect(
if (LOG.isDebugEnabled()) {
LOG.debug("{} resolved to {}", host.getHostName(), remoteAddresses == null ? "null" : Arrays.asList(remoteAddresses));
}

if (remoteAddresses == null || remoteAddresses.length == 0) {
throw new UnknownHostException(host.getHostName());
}
Expand Down