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

request help: use this lib in nginx stream subsystem #58

Open
tzssangglass opened this issue May 6, 2022 · 0 comments
Open

request help: use this lib in nginx stream subsystem #58

tzssangglass opened this issue May 6, 2022 · 0 comments

Comments

@tzssangglass
Copy link

tzssangglass commented May 6, 2022

Hi folks, thank you for open sourcing this lib.

I tried using this lib in the Nginx stream subsystem, and it works well, but I found that the judgment here always comes up when running the test case:

if not ngx.config or not ngx.config.ngx_lua_version
or ngx.config.ngx_lua_version < 9003 then
is_exiting = function() return false end
ngx_log(CRIT, "We strongly recommend you to update your ngx_lua module to "
.. "0.9.3 or above. lua-resty-logger-socket will lose some log "
.. "messages when Nginx reloads if it works with ngx_lua module "
.. "below 0.9.3")

In the Nginx http subsystem, ngx.config looks like this:

{
  debug = true,
  nginx_configure = <function 1>,
  nginx_version = 1019009,
  ngx_lua_version = 10020,
  prefix = <function 2>,
  subsystem = "http"
}

and in Nginx stream subsystem,ngx.config looks like this:

{
  debug = true,
  nginx_configure = <function 1>,
  nginx_version = 1019009,
  ngx_lua_version = 10,
  prefix = <function 2>,
  subsystem = "stream"
}

I would be happy to submit a PR to improve this issue if you agree to be compatible with Nginx streams subsystem here.

@tzssangglass tzssangglass changed the title request help: use this lib in nginx stream system request help: use this lib in nginx stream subsystem May 6, 2022
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