From 6322b7c97e007cc563a29863d5a433a3141bd4ca Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 3 Sep 2021 17:46:55 +0200 Subject: 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. --- CHANGES | 1 + net/server.lua | 2 ++ 2 files changed, 3 insertions(+) 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 = {}; -- cgit v1.2.3