Kim Alvefur <zash@zash.se> [Wed, 14 Apr 2021 15:21:13 +0200] rev 11520
util.xmppstream: Send <?xml?> declaration in same call as stream open
If network_settings.opportunistic_writes is enabled then this would
previously have resulted in two socket writes, and possibly two packets
being sent. This caused some issues in older versions of Gajim, which
apparently expected the stream opening in the first packet, and thus it
could not connect.
With this change and opportunistic_writes enabled, the first packet
should contain both the xml declaration and the stream open tag.
Without opportunistic_writes, there should be no observable change.
Tested with Gajim 1.1.2 (on same machine). Unsure if loopback behaves
differently than the network here.
Kim Alvefur <zash@zash.se> [Tue, 06 Apr 2021 23:25:15 +0200] rev 11519
core.statsmanager: Allow special "manual" value for statistics_interval
When set, no periodic statistics collection is done by
core.statsmanager, instead some module is expected to call collect()
when it suits. Obviously only one such module should be enabled.
Quoth jonas’
> correct way is to scrape the internal sources on each call to /metrics
> in the context of Prometheus
"manual" as opposed to "automatic", from the point of view of
statsmanager.
Kim Alvefur <zash@zash.se> [Sat, 10 Apr 2021 16:45:44 +0200] rev 11518
Merge 0.11->trunk
Kim Alvefur <zash@zash.se> [Thu, 18 Mar 2021 16:16:54 +0100] rev 11517
mod_saslauth: Use a defined SASL error
Kim Alvefur <zash@zash.se> [Thu, 18 Mar 2021 16:17:45 +0100] rev 11516
mod_saslauth: Improve code style
This many returns deserve their own line.
`session["sasl_handler"]` style isn't used anywhere else.
Kim Alvefur <zash@zash.se> [Thu, 18 Mar 2021 16:24:46 +0100] rev 11515
mod_c2s: Log about missing conn on async state changes
Kim Alvefur <zash@zash.se> [Thu, 18 Mar 2021 16:23:47 +0100] rev 11514
mod_c2s: Improve code style
We don't use the quoted table indexing style that often, it's not needed
here and it's enough to check for falsyness rather than `nil`.
Kim Alvefur <zash@zash.se> [Wed, 17 Mar 2021 12:47:16 +0100] rev 11513
mod_c2s: Fix traceback in session close when conn is nil
Unclear how this happens.
tmolitor <thilo@eightysoft.de> [Thu, 18 Mar 2021 14:30:47 +0100] rev 11512
mod_saslauth: Don't throw errors in async code when connections are gone
Fixes #1515
tmolitor <thilo@eightysoft.de> [Thu, 18 Mar 2021 14:30:32 +0100] rev 11511
mod_c2s: Don't throw errors in async code when connections are gone
Fixes #1507