Skip to content

Resolve multiple addresses for each domain name.#282

Merged
mpenick merged 2 commits intoapache:masterfrom
mkm85:resolve_multiple_ips
Jun 28, 2016
Merged

Resolve multiple addresses for each domain name.#282
mpenick merged 2 commits intoapache:masterfrom
mkm85:resolve_multiple_ips

Conversation

@mkm85
Copy link
Copy Markdown

@mkm85 mkm85 commented May 2, 2016

Resolve multiple addresses for each domain name. Before only one IP was returned even if the domain name resolves to several IP addresses. This is useful if a domain name resolves to all the the client seednodes.

The code is tested but no test is included since it would rely on a nameserver which cannot be simply and reliably provided to an integration test.

@datastax-bot
Copy link
Copy Markdown

Hi @mkm85, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes.

Sincerely,
DataStax Bot.

@datastax-bot
Copy link
Copy Markdown

Thank you @mkm85 for signing the Contribution License Agreement.

Cheers,
DataStax Bot.

@mpenick
Copy link
Copy Markdown
Contributor

mpenick commented May 9, 2016

Thanks for the pull request. I've create a JIRA issue to track it: https://datastax-oss.atlassian.net/browse/CPP-364. I'll pull this into master right after 2.4 releases.

Comment thread src/resolver.hpp Outdated
bool is_timed_out() { return status_ == FAILED_TIMED_OUT; }
Status status() { return status_; }
const Address& address() const { return address_; }
const std::vector<Address>& addresses() const { return addresses_; }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an AddressVec typedef in address.h. I'd prefer this use that.

@mpenick mpenick merged commit d5f74bf into apache:master Jun 28, 2016
mikefero pushed a commit that referenced this pull request Sep 4, 2019
* Add example for cloud (CaaS)
* Fix crash when the socket times out during connection
* Handle `SSL_ERROR_ZERO_RETURN` properly
* Initialize the SSL library when using cloud
* Fix cloud `local_dc` issue where `ControlConnection::local_dc()` is used, but is never set
* Remove authentication using cloud secure connect bundle
* Remove secure bundle authentication from unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants