diff --git a/puppet/zulip/manifests/app_frontend_base.pp b/puppet/zulip/manifests/app_frontend_base.pp index 2f726ec16f..b68b0a1498 100644 --- a/puppet/zulip/manifests/app_frontend_base.pp +++ b/puppet/zulip/manifests/app_frontend_base.pp @@ -89,6 +89,7 @@ class zulip::app_frontend_base { notify => Service[$zulip::common::supervisor_service], } + $uwsgi_listen_backlog_limit = zulipconf('application_server', 'uwsgi_listen_backlog_limit', 128) $uwsgi_buffer_size = zulipconf('application_server', 'uwsgi_buffer_size', 8192) $uwsgi_processes = zulipconf('application_server', 'uwsgi_processes', $uwsgi_default_processes) file { '/etc/zulip/uwsgi.ini': diff --git a/puppet/zulip/templates/uwsgi.ini.template.erb b/puppet/zulip/templates/uwsgi.ini.template.erb index 6669795822..bda9117121 100644 --- a/puppet/zulip/templates/uwsgi.ini.template.erb +++ b/puppet/zulip/templates/uwsgi.ini.template.erb @@ -8,6 +8,7 @@ chown-socket=zulip:zulip processes=<%= @uwsgi_processes %> harakiri=20 buffer-size=<%= @uwsgi_buffer_size %> +listen=<%= @uwsgi_listen_backlog_limit %> post-buffering=4096 env= LANG=en_US.UTF-8 uid=zulip