diff --git a/.requirements b/.requirements index 89647d56ae76..cb1e6e4b6f90 100644 --- a/.requirements +++ b/.requirements @@ -15,7 +15,7 @@ LIBEXPAT_SHA256=d4cf38d26e21a56654ffe4acd9cd5481164619626802328506a2869afab29ab3 LUA_KONG_NGINX_MODULE=a8411f7cf4289049f0bd3e8e40088e7256389ed3 # 0.11.0 LUA_RESTY_LMDB=7d2581cbe30cde18a8482d820c227ca0845c0ded # 1.4.2 -LUA_RESTY_EVENTS=21d152d42ace72e1d51b782ca6827b851cd6a1d4 # 0.2.1 +LUA_RESTY_EVENTS=2dcd1d7a256c53103c0fdbe804f419174e0ea8ba # 0.3.0 LUA_RESTY_WEBSOCKET=966c69c39f03029b9b42ec0f8e55aaed7d6eebc0 # 0.4.0.1 ATC_ROUTER=ffd11db657115769bf94f0c4f915f98300bc26b6 # 1.6.2 SNAPPY=23b3286820105438c5dbb9bc22f1bb85c5812c8a # 1.2.0 diff --git a/changelog/unreleased/kong/bump-lua-resty-events.yml b/changelog/unreleased/kong/bump-lua-resty-events.yml index 2d8d614b533c..8481612691d5 100644 --- a/changelog/unreleased/kong/bump-lua-resty-events.yml +++ b/changelog/unreleased/kong/bump-lua-resty-events.yml @@ -1,3 +1,3 @@ -message: "Bumped lua-resty-events to 0.2.1" +message: "Bumped lua-resty-events to 0.3.0" type: dependency scope: Core diff --git a/kong/global.lua b/kong/global.lua index 468f55bf821f..b7a1bbc04ee0 100644 --- a/kong/global.lua +++ b/kong/global.lua @@ -203,6 +203,9 @@ function _GLOBAL.init_worker_events() listening = listening, -- unix socket for broker listening max_queue_len = 1024 * 50, -- max queue len for events buffering max_payload_len = max_payload_len, -- max payload size in bytes + enable_privileged_agent = configuration and configuration.dedicated_config_processing + and configuration.role == "data_plane" + or false } worker_events = require "resty.events.compat"