From b0def9a9da8e0d80fd736e2304ddbb52ceb6a59e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 24 Mar 2020 11:15:55 +0100 Subject: [PATCH] prosody: use epoll backend --- prosody/rootfs/defaults/prosody.cfg.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/prosody/rootfs/defaults/prosody.cfg.lua b/prosody/rootfs/defaults/prosody.cfg.lua index eb1038f..9e215b9 100644 --- a/prosody/rootfs/defaults/prosody.cfg.lua +++ b/prosody/rootfs/defaults/prosody.cfg.lua @@ -155,6 +155,13 @@ log = { {{ join "\n" (splitList "\\n" .Env.GLOBAL_CONFIG) }} {{ end }} +-- Enable use of native prosody 0.11 support for epoll over select +network_backend = "epoll"; +-- Set the TCP backlog to 511 since the kernel rounds it up to the next power of 2: 512. +network_settings = { + tcp_backlog = 511; +} + component_interface = { "*" } data_path = "/config/data"