From 627df9737cd3a093bde5b18b8819b290f0c85161 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 3 Sep 2021 17:39:00 +0200 Subject: 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. --- net/server.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'net') 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; -- cgit v1.2.3