diff --git a/kong/runloop/handler.lua b/kong/runloop/handler.lua index 8b9bbb67f717..f092e79c446b 100644 --- a/kong/runloop/handler.lua +++ b/kong/runloop/handler.lua @@ -27,6 +27,7 @@ local ngx = ngx local log = ngx.log local null = ngx.null local ngx_now = ngx.now +local update_time = ngx.update_time local re_match = ngx.re.match local unpack = unpack @@ -45,6 +46,7 @@ local server_header = _KONG._NAME .. "/" .. _KONG._VERSION local function get_now() + update_time() return ngx_now() * 1000 -- time is kept in seconds with millisecond resolution. end