-
Notifications
You must be signed in to change notification settings - Fork 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
balancer: Add ngx_http_lua_ffi_balancer_set_ssl_ctx #1282
base: master
Are you sure you want to change the base?
balancer: Add ngx_http_lua_ffi_balancer_set_ssl_ctx #1282
Conversation
src/ngx_http_lua_balancer.c
Outdated
SSL_CTX* ssl_ctx, char **err) | ||
{ | ||
ngx_http_lua_ctx_t *ctx; | ||
ngx_http_upstream_t *u; |
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.
Pedantic style: two spaces between ngx_http_upstream_t
and *u
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.
I thought the style was to vertically align ctx
and u
?
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.
Based on http://nginx.org/en/docs/dev/development_guide.html#code_style_variables (and it looks like this repo follows this guide), there are two spaces separating the columns (types and names), with the right column left-aligned based on deference operators.
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.
Fixed.
This function allows setting an upstream's SSL_CTX* to a user-provided object
83f7f89
to
e04bb58
Compare
This pull request is now in conflict :( |
f924579
to
fef2581
Compare
This pull request is now in conflict :( |
This pull request is now in conflict :( |
This pull request is now in conflict :( |
This pull request is now in conflict :( |
This pull request is now in conflict :( |
This function allows setting an upstream's
SSL_CTX*
to a user-provided objectIt comes with a sister pull-request to lua-resty-core: openresty/lua-resty-core#179
I hereby granted the copyright of the changes in this pull request
to the authors of this lua-nginx-module project.