We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51e5f8 commit e88323bCopy full SHA for e88323b
lib/resty/core/regex.lua
@@ -135,6 +135,9 @@ ffi.cdef[[
135
unsigned char *dst);
136
137
uint32_t ngx_http_lua_ffi_max_regex_cache_size(void);
138
+
139
+ void ngx_http_lua_ffi_set_jit_stack_size(int size);
140
141
]]
142
143
@@ -162,6 +165,11 @@ local function get_max_regex_cache_size()
162
165
return max_regex_cache_size
163
166
end
164
167
168
+function ngx.re.opt(option, value)
169
+ if option == "jit_stack_size" then
170
+ C.ngx_http_lua_ffi_set_jit_stack_size(value)
171
+ end
172
+end
173
174
local function parse_regex_opts(opts)
175
local t = cached_re_opts[opts]
0 commit comments