Kim Alvefur <zash@zash.se> [Wed, 14 Jul 2021 22:27:12 +0200] rev 11693
net.server_epoll: Add setting for disabling the Nagle algorithm
Nagle increases latency and is the bane of all networking!
Kim Alvefur <zash@zash.se> [Wed, 14 Jul 2021 22:13:30 +0200] rev 11692
net.server_epoll: Support setting keepalive idle time
Activated by setting config.tcp_keepalive to a number, in seconds.
Defaults to 2h.
Depends on LuaSocket support for this option.
Kim Alvefur <zash@zash.se> [Wed, 14 Jul 2021 22:09:39 +0200] rev 11691
net.server_epoll: Add way to enable TCP keeplives on all connections
In case one wishes to enable this for all connections, not just c2s
(not Direct TLS ones, because LuaSec) and s2s. Unclear what use these
are, since they kick in after 2 hours of idle time.
Kim Alvefur <zash@zash.se> [Wed, 14 Jul 2021 22:06:24 +0200] rev 11690
net.server_epoll: Add an (empty) method for setting socket options
Kim Alvefur <zash@zash.se> [Wed, 14 Jul 2021 22:04:23 +0200] rev 11689
net.server_epoll: Log failures to set socket options
Good to know if it fails, especially since the return value doesn't seem
to be checked anywhere.
Since LuaSec-wrapped sockets don't expose the setoption method, this
will likely show when mod_c2s tries to enable keepalives on direct tls
connections.
Kim Alvefur <zash@zash.se> [Wed, 14 Jul 2021 02:53:42 +0200] rev 11688
mod_s2s: Don't close connections on reload
Kim Alvefur <zash@zash.se> [Wed, 14 Jul 2021 02:39:54 +0200] rev 11687
mod_s2s: Close connections attached to a host being deactivated
Couldn't use those with the host being deactivated.
Problem: This kicks in on reload, which isn't needed.
Kim Alvefur <zash@zash.se> [Wed, 14 Jul 2021 02:41:15 +0200] rev 11686
mod_s2s: Vary log level by remote stream error
Increases log level for stream conditions that could indicate a problem
on our end, especially programming errors like invalid XML, or the
remote server saying that our certificate is invalid, since these should
be investigated.
Non-issues like closing of idle streams are lowered to debug since it's
mostly noise.
Other issues left at info are mostly about changes to the remote server,
e.g. complete or partial shutdown.
Kim Alvefur <zash@zash.se> [Tue, 13 Jul 2021 23:28:49 +0200] rev 11685
tools/jabberd14sql2prosody: Tweak wording in comments
Kim Alvefur <zash@zash.se> [Tue, 13 Jul 2021 23:27:44 +0200] rev 11684
tools/xep227toprosody: Tweak wording in comments