aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-09-03 17:46:55 +0200
committerKim Alvefur <zash@zash.se>2021-09-03 17:46:55 +0200
commit6322b7c97e007cc563a29863d5a433a3141bd4ca (patch)
tree8c1bfd48ebba04bd967fa13b5948088d5ebc03bc
parent627df9737cd3a093bde5b18b8819b290f0c85161 (diff)
downloadprosody-6322b7c97e007cc563a29863d5a433a3141bd4ca.tar.gz
prosody-6322b7c97e007cc563a29863d5a433a3141bd4ca.zip
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.
-rw-r--r--CHANGES1
-rw-r--r--net/server.lua2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 1e65448f..69df9add 100644
--- a/CHANGES
+++ b/CHANGES
@@ -28,6 +28,7 @@ TRUNK
- Statistics now based on OpenMetrics
- Direct TLS support
- Offline messages aren't sent to MAM clients
+- Network backend server_select deprecated
0.11.0
======
diff --git a/net/server.lua b/net/server.lua
index 460fe2d5..0696fd52 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -59,6 +59,8 @@ if server_type == "event" then
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 = {};