我遇到一个bug 使用stream模块开启 init_by_lua_block 和 init_worker_by_lua_block 指令后 nginx子进程无法启动 且告诉我ngx_module 版本不对 但是关闭这两个指令就没有问题 这是怎么回事?

C[root@waf-salt ~]# mynginx -c /root/nginx_stream.conf
nginx: [crit] stream [lua] socket.lua:36: 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
nginx: [crit] stream [lua] access_log_socket.lua:36: 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
nginx: [crit] stream [lua] alarm_socket.lua:36: 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

    Do I have to upgrade this ngx_lua module separately?

      使用http模块的时候,ngx_lua_version的值为ngx_http_lua_version 10017
      使用stream模块的时候 ngx_lua_version = ngx_stream_lua_version = 8
      在socket.lua 里 ngx.config.ngx_lua_version 进行了判断 当<9003

        Write a Reply...