Skip to content
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

pass ip:port as the addr and pass 0 as port to lua-resty-core/lib/ngx/balancer.lua #17

Open
yfgu opened this issue Jun 20, 2017 · 0 comments

Comments

@yfgu
Copy link

yfgu commented Jun 20, 2017

I integrated the level077/lua-resty-upstream-etcd into my project. The function b.set_current_peer(server) in the lua-resty-upstream-etcd/balancer.lua pass the 10.20.22.85:8010 and nil into the function of _M.set_current_peer(addr, port) in lua-resty-core/lib/ngx/balancer.lua. So the default port is 0 in lua-resty-core/lib/ngx/balancer.lua. I got no error after integration. Does the C.ngx_http_lua_ffi_balancer_set_current_peer deal with the addr as ip:port and port as 0 correctly? What's the usage of the port, it seems that it is Unnecessary.

Write

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant