Tags: m11y/lua-nginx-module
Tags
Revert "bugfix: ngx.escape_uri: we did not escape URI reserved chars. o… …penresty#1124" Commit f170505 breaks the compatibility with RFC 3986. Here is two reasons: 1. Quote from RFC 3986 Section 2.2: > A subset of the reserved characters (gen-delims) is used as delimiters of the generic URI components described in Section 3 Note that RFC 3986 says 'a subset of the reserved characters (gen-delims)', not all the reserved characters. The characters escaped in that commit are 'sub-delims'. They are not required to be escaped according to Section 2.2. 2. Refer to RFC 3986 "Appendix A. Collected ABNF for URI", sub-delims could be used as part of query and other components. This use case shows that sub-delims are valid in some component of URI. Therefore, it would be better if we don't escape them for URI component. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
bugfix: ngx.semaphore: when nginx workers exit, the harmless error me… …ssage "semaphore gc wait queue is not empty" might be logged. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
feature: balancer_by_lua*: now the user Lua code can terminate the cu… …rrent request with arbitrary HTTP response status codes via ngx.exit(). Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
doc: fixed some typos detected by misspell. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
feature: ngx.sleep(0) now always yield the control to the nginx event… … loop. This can be used to do voluntary CPU time slicing when running CPU intensive computations on the Lua land and to avoid such computations from blocking the nginx event loop for too long. This feature requires OpenResty's delayed-posted-event patch for the nginx core. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
feature: implemented the ngx.timer.every() API function for creating … …recurring timers. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
change: renamed the C API function ngx_http_lua_ffi_errlog_get_logs t… …o ngx_http_lua_ffi_errlog_get_msg.
change: renamed lua_intercept_error_log directive to lua_capture_erro… …r_log.
PreviousNext