Kim Alvefur <zash@zash.se> [Mon, 16 Aug 2021 12:45:14 +0200] rev 11746
mod_c2s,mod_s2s: Fire event just before writes
Could allow e.g. a XEP-0198 implementation to efficiently send ack
requests at optimal times without using timers or nextTick.
Kim Alvefur <zash@zash.se> [Mon, 16 Aug 2021 12:34:52 +0200] rev 11745
net.server: Add a predrain callaback just before writes
Allows sneaking in things in the write buffer just before it's sent to
the network stack. For example ack requests, compression flushes or
other things that make sense to send after stanzas or other things.
This ensures any additional trailing data sent is included in the same
write, and possibly the same TCP packet. Other methods used such as
timers or nextTick might not have the same effect as it depends on
scheduling.
Kim Alvefur <zash@zash.se> [Mon, 16 Aug 2021 11:37:51 +0200] rev 11744
mod_s2s: Fire 's2s-ondrain' event, mirroring mod_c2s
Signals that any pending outgoing stanzas that were in the write buffer
have at least been sent off to the Kernel and maybe even sent out over
the network.
See 7a703af90c9c for mod_c2s commit
Kim Alvefur <zash@zash.se> [Sun, 15 Aug 2021 12:28:58 +0200] rev 11743
core.storagemanager: Respect archive ids issued by storage drivers in tests
Storage drivers may issue their own IDs tho none of the included ones do
this atm, but the 3rd party module mod_storage_xmlarchive has its
special format.
Kim Alvefur <zash@zash.se> [Sat, 14 Aug 2021 13:07:29 +0200] rev 11742
net.server_epoll: Improve efficiency of opportunistic writes
Should prevent further opportunistic write attempts after the kernel
buffers are full and stops accepting writes.
When combined with `keep_buffers = false` it should stop it from
repeatedly recreating the buffer table and concatenating it back into a
string when there's a lot to write.
Kim Alvefur <zash@zash.se> [Thu, 12 Aug 2021 19:34:17 +0200] rev 11741
mod_disco: Send XEP-0115 caps in s2s stream features
Not currently used for anything, but allowed and could be used in the
future and might be used by other servers.
Kim Alvefur <zash@zash.se> [Wed, 11 Aug 2021 14:55:59 +0200] rev 11740
mod_admin_shell: Keep unrestricted environment for session lifetime
Makes it so that global values set in the environment are kept longer
than within one line, and thus can be used until the session ends. They
still don't pollute the global environment, which is an error anyway.
Thanks phryk for noticing.
Kim Alvefur <zash@zash.se> [Thu, 29 Jul 2021 20:16:11 +0200] rev 11739
mod_limits: Extend unlimited_jids to s2s sessions (for Ge0rG)
This makes unlimited_jids also work for s2s connections, assuming the
remote server has been identified.
Kim Alvefur <zash@zash.se> [Thu, 29 Jul 2021 20:11:48 +0200] rev 11738
mod_limits: Factor out function for disabling limits allowing use from shell
Also enables reuse for s2s, which we will add next.
Kim Alvefur <zash@zash.se> [Thu, 29 Jul 2021 20:04:57 +0200] rev 11737
mod_bosh: Add todo to use util.session to create session object
So that we get single point where shared session properties can be
added. But not now. One day. Maybe. Patches welcome.