aboutsummaryrefslogtreecommitdiffstats
path: root/net
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 /net
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.
Diffstat (limited to 'net')
-rw-r--r--net/server.lua2
1 files changed, 2 insertions, 0 deletions
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 = {};