-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(conf) add support for 'transparent' in listeners #3884
Conversation
Shouldn't this include the output in the Nginx template (and related tests)? |
Tests would fail if the patch is not applied; @thibaultcha mentioned he didn't want them as a requirement if possible. |
hmmm, they would fail if you'd try to use the listeners with that option? but just implementing it in the temnplates and testing whether the template gets the proper flags passed shouldn't be a problem right? |
bea005f
to
4222636
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.
When the patch is not applied to nginx, this option should be disabled, and an error printed to the user that a patch is missing. As of today, we will attempt to start nginx and the configuration loader will fail to parse our nginx.conf
, resulting in an obscure error for the user.
One thing about this patch is that it needs usually
This works at least on Linux and we may need to consider adding it to our distributions when this |
How can we feature-detect this missing patch? |
4222636
to
01234b5
Compare
I was envisioning the patch introducing a new dummy function on the C side, and a protected call to load it via the FFI in our Lua. If the loading fails, we now the patch wasn't applied. Since our CLI runs with the Anyway, due to our timing constraints, we can merge this as-is and consider the parsing error good enough, so I will be dismissing my review. |
Requires Kong/openresty-patches#10
Related to https://trac.nginx.org/nginx/ticket/287