Re-enable DNS round robin#827
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
Addressto hold anInetAddress. TheInetSocketAddressis then constructed from theInetAddressinstead of the raw address.Types of Changes
What types of changes does your code introduce to this project?
Put an
xin the boxes that applyChecklist
Put an
xin 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.mddocument