-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ngx_tpl.lua): add backlog for listen (#81)
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/apisix/cli/ngx_tpl.lua b/apisix/cli/ngx_tpl.lua | ||
index 142d9229..9df0814a 100644 | ||
--- a/apisix/cli/ngx_tpl.lua | ||
+++ b/apisix/cli/ngx_tpl.lua | ||
@@ -603,11 +603,11 @@ http { | ||
|
||
server { | ||
{% for _, item in ipairs(node_listen) do %} | ||
- listen {* item.ip *}:{* item.port *} default_server {% if item.enable_http2 then %} http2 {% end %} {% if enable_reuseport then %} reuseport {% end %}; | ||
+ listen {* item.ip *}:{* item.port *} default_server {% if item.enable_http2 then %} http2 {% end %} {% if enable_reuseport then %} reuseport {% end %} backlog=16384; | ||
{% end %} | ||
{% if ssl.enable then %} | ||
{% for _, item in ipairs(ssl.listen) do %} | ||
- listen {* item.ip *}:{* item.port *} ssl default_server {% if item.enable_http2 then %} http2 {% end %} {% if enable_reuseport then %} reuseport {% end %}; | ||
+ listen {* item.ip *}:{* item.port *} ssl default_server {% if item.enable_http2 then %} http2 {% end %} {% if enable_reuseport then %} reuseport {% end %} backlog=16384; | ||
{% end %} | ||
{% end %} | ||
{% if proxy_protocol and proxy_protocol.listen_http_port then %} |