-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Nginx 1.9.11 ngx_udp_connection_t => ngx_resolver_connection_t #669
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
Nginx 1.9.11 ngx_udp_connection_t => ngx_resolver_connection_t #669
Conversation
ff7b208 to
0a139ff
Compare
|
Great work! |
src/ngx_http_lua_socket_udp.c
Outdated
| ngx_int_t rc; | ||
| ngx_http_lua_loc_conf_t *llcf; | ||
| ngx_udp_connection_t *uc; | ||
| ngx_resolver_connection_t *uc; |
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.
Style: the identifier names should be aligned up vertically. I think the ngx-releng tool in the nginx-devel-utils repos automatically catches coding style issues like this:
https://github.com/openresty/nginx-devel-utils
Will you please run this tool and fix any coding style issues? Thanks!
cc8ccc2 to
1cbed77
Compare
…for Nginx 1.9.11 Nginx 1.9.11 (nginx/nginx@1945fff) changes the resolver connection type to support TCP connections This change brings lua-nginx-module up to date with that change.
1cbed77 to
8a63903
Compare
|
Sorry about the style. I've rebased an update that has the alignment issues correct. Changes in this rebase:
I'm not exactly sure what should be done regarding It may be beneficial to to create something like a |
|
@charlesportwoodii Thanks for your work on this. I'll continue thinking about the details here. |
|
Glad to help out what little I can. Sorry for not being much more useful than this though. Preprocessor macros will be a pretty simple solution for the backwards compatibility aspect, but that would make a mess of Let me know if I can help out in any other way. |
|
@charlesportwoodii Thanks for your help so far :) I'll look into this in the next couple of weeks. The next OpenResty release will be based on NGINX 1.9.11 anyway. |
|
The compilation error should be gone now. Thanks for the report! |
bugfix: fixed compilation errors with nginx 1.9.11+. Thanks Charles R. Portwood II and Tomas Kvasnicka for the report in openresty/lua-nginx-module#669 and openresty/lua-nginx-module#668, respectively.
bugfix: fixed compilation errors with nginx 1.9.11+. Thanks Charles R. Portwood II and Tomas Kvasnicka for the report in openresty/lua-nginx-module#669 and openresty/lua-nginx-module#668, respectively.
Hi,
In Nginx 1.9.11, the
ngx_udp_connection_tstructure has been renamed tongx_resolver_connection_tinsrc/core/ngx_resolver.hof Nginx core. (nginx/nginx@1945fff).Consequently, compilation fails in
lua-nginx-module/src/ngx_http_lua_socket_udp.handlua-nginx-module/src/ngx_http_lua_socket_udp.cdue to references ofngx_udp_connection_t. The compilation failure is as follows:I've attached a simple patch that corrects the issue and allows Nginx 1.9.11 to compile.
UPDATE: See #668 for others reporting this issue.