Comparison

net/server.lua @ 11764:e2650d59db2d

net.server_select: Deprecate and warn about it To be removed in the future, but not right now. Give the log warning a chance to prod anyone who might have network_backend="select" in their config first. There's also things built on Verse which uses server_select.lua, which will need to be updated somehow.
author Kim Alvefur <zash@zash.se>
date Fri, 03 Sep 2021 17:46:55 +0200
parent 11763:e273ef869794
child 12481:2ee27587fec7
comparison
equal deleted inserted replaced
11763:e273ef869794 11764:e2650d59db2d
57 for k,default in pairs(defaults) do 57 for k,default in pairs(defaults) do
58 server.cfg[k] = event_settings[k] or default; 58 server.cfg[k] = event_settings[k] or default;
59 end 59 end
60 end 60 end
61 elseif server_type == "select" then 61 elseif server_type == "select" then
62 -- TODO Remove completely.
63 log("warn", "select is deprecated, the new default is epoll. For more info see https://prosody.im/doc/network_backend");
62 server = require "net.server_select"; 64 server = require "net.server_select";
63 65
64 local defaults = {}; 66 local defaults = {};
65 for k,v in pairs(server.getsettings()) do 67 for k,v in pairs(server.getsettings()) do
66 defaults[k] = v; 68 defaults[k] = v;