-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support configuring scheme for Server #340
Conversation
@twicksell @elandau @qiangdavidliu @tcellucci [1] https://github.com/Netflix/ribbon#project-status-on-maintenance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -93,6 +94,14 @@ public Server(String host, int port) { | |||
this.id = host + ":" + port; | |||
isAliveFlag = false; | |||
} | |||
|
|||
public Server(String scheme, String host, int port) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit, can you also update the other constructor to call this(null, host, port)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed on 6646ac8
Thanks for the contrib @mattnelson |
Support for a
Server
to optionally have a scheme. This allows for aServerList
to support instances with different schemes which enables the gradual migration to secure services without a big bang flip over.Related to #275 which could not be accepted due to concerns about passivity. This change will allow me to extend
ConfigurationBasedServerList
and provide the scheme/port on construction of theServer
and abstracts the ribbon client IsSecure/SecurePort properties into the individualServer
instance.Without this change I will likely be forced to fork ribbon internally, which I would really like to avoid doing. Added a plethora of tests increase the probability of acceptance.