aboutsummaryrefslogtreecommitdiffstats
path: root/net/server.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-09-03 17:35:34 +0200
committerKim Alvefur <zash@zash.se>2021-09-03 17:35:34 +0200
commit598e93a6001d283cb52e7d4f75d3a48ca0fe2f62 (patch)
tree5b52e1a3a9c194b5d6840014e24e2349253173de /net/server.lua
parent307e58cc75eda7aa9b7bef4d65d7952b6bca8748 (diff)
downloadprosody-598e93a6001d283cb52e7d4f75d3a48ca0fe2f62.tar.gz
prosody-598e93a6001d283cb52e7d4f75d3a48ca0fe2f62.zip
net.server: Fall back to default backend from libevent instead of always select
Fixes that selecting libevent when unavaibalbe would fall back to select instead of epoll, even if that's available. This way, we only have to update it in once place when choosing a new default.
Diffstat (limited to 'net/server.lua')
-rw-r--r--net/server.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server.lua b/net/server.lua
index f5666594..161e34f6 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -25,8 +25,8 @@ end
if server_type == "event" then
if not pcall(require, "luaevent.core") then
- log("error", "libevent not found, falling back to select()");
- server_type = "select"
+ log("error", "libevent not found, falling back to %s", default_backend);
+ server_type = default_backend;
end
end