From d0a77980eb8ee925ee1c9b72dccbb9bc8f2b18bb Mon Sep 17 00:00:00 2001 From: fesily Date: Wed, 13 Jul 2022 23:34:54 +0800 Subject: [PATCH] patches: add privileged agent thread pool (#847) --- ...1.21.4-privileged_agent_process_thread_pool.patch | 12 ++++++++++++ ...1.23.0-privileged_agent_process_thread_pool.patch | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 patches/nginx-1.21.4-privileged_agent_process_thread_pool.patch create mode 100644 patches/nginx-1.23.0-privileged_agent_process_thread_pool.patch diff --git a/patches/nginx-1.21.4-privileged_agent_process_thread_pool.patch b/patches/nginx-1.21.4-privileged_agent_process_thread_pool.patch new file mode 100644 index 0000000..829f214 --- /dev/null +++ b/patches/nginx-1.21.4-privileged_agent_process_thread_pool.patch @@ -0,0 +1,12 @@ +--- a/src/core/ngx_thread_pool.c ++++ b/src/core/ngx_thread_pool.c +@@ -587,7 +587,8 @@ + ngx_thread_pool_conf_t *tcf; + + if (ngx_process != NGX_PROCESS_WORKER +- && ngx_process != NGX_PROCESS_SINGLE) ++ && ngx_process != NGX_PROCESS_SINGLE ++ && !ngx_is_privileged_agent) + { + return NGX_OK; + } diff --git a/patches/nginx-1.23.0-privileged_agent_process_thread_pool.patch b/patches/nginx-1.23.0-privileged_agent_process_thread_pool.patch new file mode 100644 index 0000000..829f214 --- /dev/null +++ b/patches/nginx-1.23.0-privileged_agent_process_thread_pool.patch @@ -0,0 +1,12 @@ +--- a/src/core/ngx_thread_pool.c ++++ b/src/core/ngx_thread_pool.c +@@ -587,7 +587,8 @@ + ngx_thread_pool_conf_t *tcf; + + if (ngx_process != NGX_PROCESS_WORKER +- && ngx_process != NGX_PROCESS_SINGLE) ++ && ngx_process != NGX_PROCESS_SINGLE ++ && !ngx_is_privileged_agent) + { + return NGX_OK; + }