Sun, 18 Jul 2021 12:57:06 +0200 editorconfig: We use tabs
Kim Alvefur <zash@zash.se> [Sun, 18 Jul 2021 12:57:06 +0200] rev 11710
editorconfig: We use tabs This lets various supporting editors know what indentation style should be used for files in the repo. See https://editorconfig.org/ Coding style for Lua files is described in `doc/coding_style.md` The 3-space indentation in `configure` comes from its LuaRocks inheritance. `doc/doap.xml` is normalized with `xmllint` which spits out 2-space indentation.
Sun, 18 Jul 2021 09:17:31 +0200 mod_s2s: Handle measurement where the local host is unknown
Kim Alvefur <zash@zash.se> [Sun, 18 Jul 2021 09:17:31 +0200] rev 11709
mod_s2s: Handle measurement where the local host is unknown This could happen with Dialback-only connections or others that were missing the stream 'to' attribute.
Sun, 18 Jul 2021 09:08:04 +0200 mod_s2s: Guard against missing 'to' on incoming stream
Kim Alvefur <zash@zash.se> [Sun, 18 Jul 2021 09:08:04 +0200] rev 11708
mod_s2s: Guard against missing 'to' on incoming stream Given an incoming <stream:stream from="example.com"> this line would have mistakenly reported the 'from' as the local host. Neither are technically required and may be missing, especially on connections used only for Dialback. Outgoing connections initiated by Prosody always have 'from_host' and 'to_host', so it is safer to check it this way.
Sun, 18 Jul 2021 08:53:37 +0200 net.server_epoll: Fix traceback-causing typo
Kim Alvefur <zash@zash.se> [Sun, 18 Jul 2021 08:53:37 +0200] rev 11707
net.server_epoll: Fix traceback-causing typo Caused "attempt to index a string value (local 'data')", but only if keep_buffers is set to false, which is not the default. Introduced in 917eca7be82b
Sat, 17 Jul 2021 14:54:48 +0200 net.server_epoll: Ensure timeouts match epoll flags
Kim Alvefur <zash@zash.se> [Sat, 17 Jul 2021 14:54:48 +0200] rev 11706
net.server_epoll: Ensure timeouts match epoll flags Read and write timeouts should usually match whether we want to read or write.
Sat, 17 Jul 2021 14:51:50 +0200 net.server_epoll: Skip reset of read timeout when not reading
Kim Alvefur <zash@zash.se> [Sat, 17 Jul 2021 14:51:50 +0200] rev 11705
net.server_epoll: Skip reset of read timeout when not reading Should avoid rare but needless timer interactions
Sat, 17 Jul 2021 14:06:57 +0200 net.server_epoll: Reduce timer churn during TLS handshake
Kim Alvefur <zash@zash.se> [Sat, 17 Jul 2021 14:06:57 +0200] rev 11704
net.server_epoll: Reduce timer churn during TLS handshake Instead of removing and readding the timer, keep it and adjust it instead. Should reduce garbage production a bit.
Fri, 16 Jul 2021 17:10:09 +0200 net.server_epoll: Use only fatal "write" timeout during TLS negotiation
Kim Alvefur <zash@zash.se> [Fri, 16 Jul 2021 17:10:09 +0200] rev 11703
net.server_epoll: Use only fatal "write" timeout during TLS negotiation Only real difference between the read and write timeouts is that the former has a callback that allows the higher levels to keep the connection alive, while hitting the later is immediately fatal. We want the later behavior for TLS negotiation.
Fri, 16 Jul 2021 15:40:08 +0200 net.server_epoll: Optimize concatenation of exactly 2 buffer chunks
Kim Alvefur <zash@zash.se> [Fri, 16 Jul 2021 15:40:08 +0200] rev 11702
net.server_epoll: Optimize concatenation of exactly 2 buffer chunks Saves a function call. I forget if I measured this kind of thing but IIRC infix concatenation is faster than a function call up to some number of items, but let's stop at 2 here.
Fri, 16 Jul 2021 15:38:38 +0200 net.server_epoll: Avoid allocating a buffer table for single writes
Kim Alvefur <zash@zash.se> [Fri, 16 Jul 2021 15:38:38 +0200] rev 11701
net.server_epoll: Avoid allocating a buffer table for single writes writebuffer is now string | { string } Saves the allocation of a buffer table until the second write, which could be rare, especially with opportunistic writes.
(0) -10000 -3000 -1000 -300 -100 -10 +10 +100 +300 +1000 tip