Browse Source

prosody: use epoll backend

Saúl Ibarra Corretgé 5 years ago
parent
commit
b0def9a9da
1 changed files with 7 additions and 0 deletions
  1. 7 0
      prosody/rootfs/defaults/prosody.cfg.lua

+ 7 - 0
prosody/rootfs/defaults/prosody.cfg.lua

@@ -155,6 +155,13 @@ log = {
 {{ join "\n" (splitList "\\n" .Env.GLOBAL_CONFIG) }}
 {{ join "\n" (splitList "\\n" .Env.GLOBAL_CONFIG) }}
 {{ end }}
 {{ 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 = { "*" }
 component_interface = { "*" }
 
 
 data_path = "/config/data"
 data_path = "/config/data"