-
-
Notifications
You must be signed in to change notification settings - Fork 54
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 listening on specific interfaces; changed params in squid::http_port{} #103
Conversation
798001c
to
673858f
Compare
Retriggering CI... |
673858f
to
ab00d86
Compare
There, tests pass except for the first three that seem unrelated to my change. |
Looks like the tests didn't run because of rubygems/bundler#6629 (comment) |
d157835
to
ef6cad4
Compare
There we go! All green. |
ef6cad4
to
2596b44
Compare
I went for the minimalist approach first, but good points. Can you have a look at the new version? You can diff P.S.: WRT the new title of this PR ("changed params"), do note that my API changes are meant to be backward-compatible. I improved the unit tests to ensure that, at least for the usecases I could think of. |
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.
Could you rebase to fix the conflict?
I'd also like do a release which is already breaking and ideally we don't do breaking changes too often. Any chance you could get to this in the not too far future?
I'll try to have a look at it this week, before my holidays. |
2596b44
to
ed151f3
Compare
This allows "http_port host:port" configuration constructs, instead of just specifying the port and listening on all interfaces. Pre-1.0.0 versions used to allow "host:port" as port/title arg, because the input wasn't sufficiently checked.
ed151f3
to
ebd8a1e
Compare
I refactored this PR a bit, see the commit message. There are two failed acceptance tests, which seem unrelated to my changes. |
looks good to me. @ekohl can you have a look again? |
- Simplify the logic. - Check the title-provided host against Stdlib::Host. - Move the canonical host:port construction out of the template. - Provide separate values for title and host:port to the template. - Add three new testcases.
74d787f
to
486e869
Compare
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.
If nobody beat me to it I'll fix the build infra tomorrow to make sure the tests pass. Other than that I think this is ready to be merged.
Thanks! |
This allows
http_port host:port
configuration constructs, instead of justspecifying the port and listening on all interfaces.
Pre-1.0.0 versions used to allow
host:port
as port/title arg, because theinput wasn't sufficiently checked.