Wed, 01 Dec 2021 21:04:32 +0100 mod_smacks: Use stanza type checking function for correctness
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 21:04:32 +0100] rev 11983
mod_smacks: Use stanza type checking function for correctness Non-stanza tables with an 'attr' field might be rare in Prosody, but better to be Correct
Wed, 01 Dec 2021 16:26:53 +0100 mod_smacks: Remove redundant fields
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 16:26:53 +0100] rev 11982
mod_smacks: Remove redundant fields Given that the registry is scoped per user and the module is scoped per host, there seems no point to checking or storing both username and host here.
Wed, 01 Dec 2021 16:20:40 +0100 mod_smacks: Factor out formatting of 'h' value
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 16:20:40 +0100] rev 11981
mod_smacks: Factor out formatting of 'h' value
Wed, 01 Dec 2021 15:27:55 +0100 mod_smacks: Remove dead legacy code for 0.10
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 15:27:55 +0100] rev 11980
mod_smacks: Remove dead legacy code for 0.10
Wed, 01 Dec 2021 15:09:11 +0100 mod_smacks: Use new pre-session-close event instead of monkeypatch
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 15:09:11 +0100] rev 11979
mod_smacks: Use new pre-session-close event instead of monkeypatch Much cleaner.
Wed, 01 Dec 2021 15:06:48 +0100 mod_c2s: Add event just before closing as session
Kim Alvefur <zash@zash.se> [Wed, 01 Dec 2021 15:06:48 +0100] rev 11978
mod_c2s: Add event just before closing as session To allow modules to do things just before the session is closed. The '(pre-)resource-unbind' events are fired after the stream is closed, leaving no way to send something.
Tue, 30 Nov 2021 22:04:00 +0100 util.dependencies: Fix typo (thanks jonas’)
Kim Alvefur <zash@zash.se> [Tue, 30 Nov 2021 22:04:00 +0100] rev 11977
util.dependencies: Fix typo (thanks jonas’) vim> Change "sevral" to: 1 "several" 2 "sacral" 3 "spiral" 4 "feral" 5 "serial" jonas’> I choose 4.
Tue, 30 Nov 2021 18:19:40 +0100 net.server_epoll: Prevent loop attempting to send last data after close
Kim Alvefur <zash@zash.se> [Tue, 30 Nov 2021 18:19:40 +0100] rev 11976
net.server_epoll: Prevent loop attempting to send last data after close If the connection is closed by the peer, any buffered data is given a last chance to be sent (see f27b9319e0da). If the connection is Really closed, no attempt to write will occur, instead epoll will raise the error flag and :onreadable() will be invoked again, where it will try to :close() again for the same reason, thus looping until the connection somehow gets destroyed. By clearing the _connected flag, the second time it passes :onreadable() it should go directly to :destroy(), breaking the loop. Thanks Link Mauve for reporting
Tue, 30 Nov 2021 16:26:01 +0100 mod_storage_sql: Return cached total where it makes sense
Kim Alvefur <zash@zash.se> [Tue, 30 Nov 2021 16:26:01 +0100] rev 11975
mod_storage_sql: Return cached total where it makes sense This should skip the summary SQL query when not needed, ie when the cached value can be used directly.
Tue, 30 Nov 2021 15:58:23 +0100 mod_storage_sql: Adjust handling of 'total' for multi-id queries
Kim Alvefur <zash@zash.se> [Tue, 30 Nov 2021 15:58:23 +0100] rev 11974
mod_storage_sql: Adjust handling of 'total' for multi-id queries Otherwise a query for a set of ids may cause that value to be cached, despite only covering a subset.
(0) -10000 -3000 -1000 -300 -100 -10 +10 +100 +300 +1000 tip