Skip to content

feat(client): allow both IPv6 and IPv4 local addresses #2172

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

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

inikulin
Copy link
Contributor

@inikulin inikulin commented Apr 2, 2020

Closes: #2169

@inikulin inikulin force-pushed the gh-2169 branch 3 times, most recently from 10408ea to 71b8045 Compare April 2, 2020 18:28
@inikulin
Copy link
Contributor Author

inikulin commented Apr 2, 2020

gitcop is not happy with the commit message for some reason. Though, I've tried to follow the guidelines. Can someone clarify what's wrong with it please?

@inikulin inikulin force-pushed the gh-2169 branch 2 times, most recently from c3976b3 to fe6b9dd Compare April 2, 2020 18:54
@inikulin
Copy link
Contributor Author

@seanmonstar Sorry for poking you, but may ask your feedback on the PR?

@inikulin inikulin force-pushed the gh-2169 branch 3 times, most recently from d92c485 to a5e94ac Compare April 19, 2020 10:20
@inikulin
Copy link
Contributor Author

hopeless bump

@inikulin
Copy link
Contributor Author

inikulin commented Oct 7, 2020

@seanmonstar Sorry for the ping again, your feedback will be appreciated

Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

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

Sorry about losing the notifications on this. I'm fine with add the ability to do this, we just need to prevent breaking changes :)

@inikulin
Copy link
Contributor Author

@seanmonstar addressed the comments

@inikulin inikulin requested a review from seanmonstar October 13, 2020 21:34
Currently HttpConnector::set_local_address method accepts a single
argument. Server might not support IPv6 or IPv4. Therefore, the only
solution at the moment is to manually perform DNS resolution and pick
appropriate local address family. This is inefficient, as leads to
2 DNS lookups per request. This commit allows specifying both IPv4
and IPv6, so connector can decide which one to use based on DNS
resolution results.
Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

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

Thanks!

@seanmonstar seanmonstar merged commit fb19f3a into hyperium:master Oct 13, 2020
@inikulin inikulin deleted the gh-2169 branch October 13, 2020 23:51
BenxiangGe pushed a commit to BenxiangGe/hyper that referenced this pull request Jul 26, 2021
…v6 and IPv4 local addrs (hyperium#2172)

Currently HttpConnector::set_local_address method accepts a single
argument. Server might not support IPv6 or IPv4. Therefore, the only
solution at the moment is to manually perform DNS resolution and pick
appropriate local address family. This is inefficient, as leads to
2 DNS lookups per request. This commit allows specifying both IPv4
and IPv6, so connector can decide which one to use based on DNS
resolution results.
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.

HttpConnector::set_local_address doesn't allow to specify both v4 and v6 IPs
2 participants