lua-resty-core icon indicating copy to clipboard operation
lua-resty-core copied to clipboard

New FFI-based API for lua-nginx-module

Results 79 lua-resty-core issues
Sort by recently updated
recently updated
newest added

Lua code: ``` local process = require "ngx.process" process.signal_graceful_exit() ``` Nginx config: ``` stream { log_format basic '$remote_addr [$time_local] ' '$protocol $status $bytes_sent $bytes_received ' '$session_time $upstream_addr $upstream_first_byte_time'; access_log logs/access.log...

In rewrite_by_lua phase, I want to get the matched location name on runtime。 For example: nginx server config: ``` server { listen 80; server_name 127.0.0.1; location /test { return 200...

I want to change request header in balancer_by_lua_block phase, because i need to pass host header to next upstream node. I use recreate_request function to change request header information but...

I'm seeing the following random test failures on ubuntu:trusty x86_64: ``` bash $ TEST_NGINX_RANDOMIZE=1 \ prove -r -j2 -I../test-nginx/lib \ t/stream/re-gmatch.t t/stream/re-gmatch.t .. 1/? # Failed test 'TEST 2: matched,...

I'm seeing the following random test failures on Fedora x86_64: ``` bash $ TEST_NGINX_INIT_BY_LUA="jit.opt.start('minstitch=0') require('resty.core.base').set_string_buf_size(1) require('resty.core.regex').set_buf_grow_ratio(1)" \ TEST_NGINX_SLEEP=0.005 \ prove -r -I../test-nginx/lib t/re-sub.t t/re-sub.t .. 1/106 # Failed test 'TEST...

I'm seeing the following random test failures on Fedora x86_64: ``` t/stream/os-getenv-hup.t ........... 1/13 # Failed test 'TEST 2: HUP reload changes env value (1/3) - response_body - response is...

we can implement it with this API: `enable_privileged_agent(connections?)` the original API: https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/process.md#enable_privileged_agent

We need a way to document which APIs are enabled in stream subsystem. _Originally posted by @spacewander in https://github.com/openresty/lua-resty-core/pull/306#issuecomment-657905727_

nginx version: openresty/1.17.8.1rc1 built by gcc 9.3.0 (Ubuntu 9.3.0-10ubuntu2) built with OpenSSL 1.1.0k 28 May 2019 lua-resty-core: 0.1.18 OS: Linux ea01851460a5 4.19.76-linuxkit #1 SMP Tue May 26 11:42:35 UTC 2020...

Getting below error: [warn] 5352#5352: *290 [lua] _G write guard:12: __newindex(): writing a global lua variable ('message') which may lead to race conditions between concurrent requests, so prefer the use...