Software /
code /
prosody
Changeset
11762:54530085dffe
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 03 Sep 2021 17:35:34 +0200 |
parents | 11761:dbf378dcf27b |
children | 11763:e273ef869794 |
files | net/server.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server.lua Tue Aug 31 13:34:08 2021 +0200 +++ b/net/server.lua Fri Sep 03 17:35:34 2021 +0200 @@ -25,8 +25,8 @@ 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