net.server: Pikc server_epoll as unconditional default
authorKim Alvefur <zash@zash.se>
Fri, 03 Sep 2021 17:39:00 +0200
changeset 11767 e273ef869794
parent 11766 54530085dffe
child 11768 e2650d59db2d
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
--- 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;