Kim Alvefur <zash@zash.se> [Tue, 14 Jun 2022 19:21:20 +0200] rev 12558
Merge 0.12->trunk
Kim Alvefur <zash@zash.se> [Tue, 14 Jun 2022 16:28:49 +0200] rev 12557
util.startup: Fix async waiting for last shutdown steps
Observed problem: When shutting down prosody would immediately exit
after waiting for s2s connections to close, skipping the last cleanup
events and reporting the exit reason and code.
This happens because prosody.main_thread is in a waiting state and
queuing startup.shutdown is dispatched trough the main loop via
nexttick, but since the main loop was no longer running at that point it
proceeded to the end of the prosody script and exited there.
Kim Alvefur <zash@zash.se> [Tue, 14 Jun 2022 03:31:30 +0200] rev 12556
mod_csi_simple: Collect stats on number of stanzas per flush
Because interesting, gives some idea about the efficiency.
Kim Alvefur <zash@zash.se> [Mon, 13 Jun 2022 21:25:42 +0200] rev 12555
mod_admin_shell: Show session id ping reply came
To point out which one when more than one connection was established, or
if it's an existing connection, allows correlation with s2s:show() or
with logs.
Kim Alvefur <zash@zash.se> [Mon, 13 Jun 2022 19:17:36 +0200] rev 12554
Merge 0.12->trunk
Kim Alvefur <zash@zash.se> [Sun, 12 Jun 2022 01:50:33 +0200] rev 12553
mod_smacks: Fix #1761 by setting a flag earlier
This ensures that the flag is set even if the pre-drain callback is
called from send(), as would be the case if opportunistic writes are
enabled.
Kim Alvefur <zash@zash.se> [Mon, 13 Jun 2022 18:41:13 +0200] rev 12552
net.http.codes: Refresh from registry, many refs now point to RFC9110
Matthew Wild <mwild1@gmail.com> [Sat, 11 Jun 2022 22:15:31 +0100] rev 12551
util.watchdog: Allow passing a new timeout to :reset()
Matthew Wild <mwild1@gmail.com> [Sat, 11 Jun 2022 22:15:14 +0100] rev 12550
util.watchdog: Allow :reset() to restart a cancelled watchdog
Matthew Wild <mwild1@gmail.com> [Sat, 11 Jun 2022 21:11:01 +0100] rev 12549
util.watchdog: Update to use "new" util.timer API
When this module was written, it wasn't possible to cancel or reschedule a
timer. Times have changed, and we should take advantage of those new methods.
This module becomes a very thin wrapper around util.timer now, but I'd argue
it's still a very common and useful concept/abstraction to have around.
Possible API change: this removes the 'last_reset' field of the watchdog. This
was never really intended as a public thing, and I can't find any code that
uses it, so I consider removal to be safe.