-
Notifications
You must be signed in to change notification settings - Fork 584
Re-enable DNS round robin #827
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
@acogoluegnes I think we can ship this in a minor release. Thoughts? |
@michaelklishin Yes, it could go into 5.16.0. @ogolberg Thanks for the contribution, it does not break anything as far as I can tell. Could you please provide the change for the NIO mode for consistency's sake? It happens in the corresponding |
Sorry, I missed this one. There's still this line to create the SSL engine, I honestly don't know if it matters WRT hostname verification but if I follow the code correctly the original hostname should be used there anywhere, so it should be OK. @ogolberg @michaelklishin Any thoughts? |
I am not sure if it matters for hostname validation, but from looking at the source of the
let me make a change to revert that behavior and pass the original hostname into |
… it into createSslEngine in NIO mode
Thanks! This will go into 5.16.0, we'll release an RC in September. |
Proposed Changes
This change reenables DNS round robin (#138) which was disabled because it was deemed incompatible with TLS hostname verification (#394).
To make DNS round robin work with hostname verification, this change subclasses
Address
to hold anInetAddress
. TheInetSocketAddress
is then constructed from theInetAddress
instead of the raw address.Types of Changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.
CONTRIBUTING.md
document