Changeset

11763:e273ef869794

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.
author Kim Alvefur <zash@zash.se>
date Fri, 03 Sep 2021 17:39:00 +0200
parents 11762:54530085dffe
children 11764:e2650d59db2d
files net/server.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/server.lua	Fri Sep 03 17:35:34 2021 +0200
+++ b/net/server.lua	Fri Sep 03 17:39:00 2021 +0200
@@ -14,8 +14,7 @@
 
 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;