aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-09-03 17:39:00 +0200
committerKim Alvefur <zash@zash.se>2021-09-03 17:39:00 +0200
commit627df9737cd3a093bde5b18b8819b290f0c85161 (patch)
tree2d1149982bef71f4d27f3824539f303128b7c219
parent598e93a6001d283cb52e7d4f75d3a48ca0fe2f62 (diff)
downloadprosody-627df9737cd3a093bde5b18b8819b290f0c85161.tar.gz
prosody-627df9737cd3a093bde5b18b8819b290f0c85161.zip
net.server: Pikc server_epoll as unconditional default
Previously it would have gone for server_select if util.poll was for some reason not available, which should be never these days. And even if it was, best to flush it out by throwing loud errors so users notice. Then they can work around it by using select until we delete that one.
-rw-r--r--net/server.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/server.lua b/net/server.lua
index 161e34f6..460fe2d5 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -14,8 +14,7 @@ end
local log = require "util.logger".init("net.server");
-local have_util_poll = pcall(require, "util.poll");
-local default_backend = have_util_poll and "epoll" or "select";
+local default_backend = "epoll";
local server_type = require "core.configmanager".get("*", "network_backend") or default_backend;