Kim Alvefur <zash@zash.se> [Tue, 13 Jul 2021 14:20:24 +0200] rev 11676
net.server_epoll: Factor out TLS initialization into a method
So there's :startls(), :inittls() and :tlshandshake()
:starttls() prepares for plain -> TLS upgrade and ensures that the
(unencrypted) write buffer is drained before proceeding.
:inittls() wraps the connection and does things like SNI, DANE etc.
:tlshandshake() steps the TLS negotiation forward until it completes
Kim Alvefur <zash@zash.se> [Tue, 13 Jul 2021 02:05:35 +0200] rev 11675
net.server_epoll: Fix typo
Kim Alvefur <zash@zash.se> [Sun, 11 Jul 2021 12:41:32 +0200] rev 11674
mod_s2s: Log debug message on attempted close of an connectionless session
This should probably never happen, but probably does anyways.
A debug message would show the truth of the matter.
Kim Alvefur <zash@zash.se> [Sun, 11 Jul 2021 12:37:51 +0200] rev 11673
mod_s2s: Drop level of indentation by inverting a condition and early return
Nicer to get rid of a conditional that covers such a large portion of a
pretty big function.
Kim Alvefur <zash@zash.se> [Sun, 11 Jul 2021 12:36:08 +0200] rev 11672
mod_s2s: Use module API to fire events
These direct accesses are probably more optimized, but weird when the
module API has methods for these things.
Kim Alvefur <zash@zash.se> [Sun, 11 Jul 2021 10:09:10 +0200] rev 11671
scansion tests: Allow specifying network settings via environment variable
Allows testing e.g. opportunistic writes or other settings easily in CI
or otherwise without editing the config file.
make integration-test PROSODY_NETWORK_SETTINGS='{"opportunistic_writes":true}'
Kim Alvefur <zash@zash.se> [Sun, 11 Jul 2021 10:09:07 +0200] rev 11670
scansion tests: Allow specifying network backend via environment variable
To make it easier to test select and event without having to edit the
config file, e.g. in CI.
make integration-test PROSODY_NETWORK_BACKEND=event
Kim Alvefur <zash@zash.se> [Sun, 11 Jul 2021 09:39:21 +0200] rev 11669
net.server_epoll: Prevent stack overflow of opportunistic writes
net.http.files serving a big enough file on a fast enough connection
with opportunistic_writes enabled could trigger a stack overflow through
repeatedly serving more data that immediately gets sent, draining the
buffer and triggering more data to be sent. This also blocked the server
on a single task until completion or an error.
This change prevents nested opportunistic writes, which should prevent
the stack overflow, at the cost of reduced download speed, but this is
unlikely to be noticeable outside of Gbit networks. Speed at the cost of
blocking other processing is not worth it, especially with the risk of
stack overflow.
Kim Alvefur <zash@zash.se> [Fri, 09 Jul 2021 22:06:58 +0200] rev 11668
mod_http_errors: Set status code 200 from root page
It isn't quite an error.
Kim Alvefur <zash@zash.se> [Fri, 09 Jul 2021 21:55:14 +0200] rev 11667
mod_http_errors: Add a Prosody logo to root page