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.
--- a/CHANGES Fri Sep 03 17:39:00 2021 +0200
+++ b/CHANGES Fri Sep 03 17:46:55 2021 +0200
@@ -28,6 +28,7 @@
- Statistics now based on OpenMetrics
- Direct TLS support
- Offline messages aren't sent to MAM clients
+- Network backend server_select deprecated
0.11.0
======
--- a/net/server.lua Fri Sep 03 17:39:00 2021 +0200
+++ b/net/server.lua Fri Sep 03 17:46:55 2021 +0200
@@ -59,6 +59,8 @@
end
end
elseif server_type == "select" then
+ -- TODO Remove completely.
+ log("warn", "select is deprecated, the new default is epoll. For more info see https://prosody.im/doc/network_backend");
server = require "net.server_select";
local defaults = {};