This is an automated email from the ASF dual-hosted git repository.

ashishtiwari pushed a commit to branch Revolyssup-patch-2
in repository https://gitbox.apache.org/repos/asf/apisix.git

commit ffd55729b06486538d3650ba4f66937a4f314ee7
Author: Ashish Tiwari <[email protected]>
AuthorDate: Mon Oct 13 16:11:33 2025 +0530

    Add reuseport and so_keepalive options to listen
---
 apisix/cli/ngx_tpl.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/apisix/cli/ngx_tpl.lua b/apisix/cli/ngx_tpl.lua
index 18b77fd3c..6ea98a485 100644
--- a/apisix/cli/ngx_tpl.lua
+++ b/apisix/cli/ngx_tpl.lua
@@ -105,7 +105,7 @@ http {
     }
 
     server {
-        listen {* prometheus_server_addr *};
+        listen {* prometheus_server_addr *} reuseport so_keepalive=off;
 
         access_log off;
 
@@ -578,7 +578,7 @@ http {
 
     {% if enabled_plugins["prometheus"] and prometheus_server_addr then %}
     server {
-        listen {* prometheus_server_addr *};
+        listen {* prometheus_server_addr *} reuseport so_keepalive=off;
 
         access_log off;
 

Reply via email to