Kim Alvefur <zash@zash.se> [Fri, 03 Sep 2021 17:39:00 +0200] rev 11767
net.server: Pikc server_epoll as unconditional default
Previously it would have gone for server_select if util.poll was for
some reason not available, which should be never these days. And even if
it was, best to flush it out by throwing loud errors so users notice.
Then they can work around it by using select until we delete that one.
Kim Alvefur <zash@zash.se> [Fri, 03 Sep 2021 17:35:34 +0200] rev 11766
net.server: Fall back to default backend from libevent instead of always select
Fixes that selecting libevent when unavaibalbe would fall back to select
instead of epoll, even if that's available.
This way, we only have to update it in once place when choosing a new
default.
Kim Alvefur <zash@zash.se> [Tue, 31 Aug 2021 13:34:08 +0200] rev 11765
net.server_epoll: Prevent removed timers from being readded
In a case like this the timer would not be readded:
addtimer(1, function(t, id)
stop(id)
return 1
end);
Kim Alvefur <zash@zash.se> [Tue, 31 Aug 2021 11:38:09 +0200] rev 11764
mod_mam: Suppress offline message broadcast for MAM clients
MattJ on 09:34:24
> Zash: I think as a first step, offline messages should not be sent to
> clients that request MAM
https://chat.modernxmpp.org/log/modernxmpp/2021-08-31#2021-08-31-8518a542bd283686
Kim Alvefur <zash@zash.se> [Tue, 31 Aug 2021 11:26:42 +0200] rev 11763
mod_mam: Only check for locally generated stanza-ids
Otherwise a message archived by a remote server would be incorrectly
silently discarded. This should be safe from spoofing thanks to
strip_stanza_id earlier in the event chain.
Kim Alvefur <zash@zash.se> [Tue, 31 Aug 2021 11:25:23 +0200] rev 11762
mod_mam: Explain behavior with absent mod_offline in a comment
Kim Alvefur <zash@zash.se> [Thu, 25 Jun 2020 18:01:38 +0200] rev 11761
mod_mam: "Handle" messages that have been archived in the absense of mod_offline
Kim Alvefur <zash@zash.se> [Mon, 30 Aug 2021 20:19:15 +0200] rev 11760
mod_external_services: Factor out public function for converting to XML
Along with the previous commit, allows building the XML thing yourself,
should you wish to send it yourself or use it in a different context than
an iq reply.
API change: The 'reply' is removed from the event.
Kim Alvefur <zash@zash.se> [Mon, 30 Aug 2021 00:11:58 +0200] rev 11759
mod_external_services: Factor out public function returning current services
This way you get the _prepared_ services and don't have to do that mapping
yourself.
Kim Alvefur <zash@zash.se> [Mon, 30 Aug 2021 20:19:09 +0200] rev 11758
mod_external_services: Filter services by requested credentials using a Set
Please don't be accidentally quadratic.