Kim Alvefur <zash@zash.se> [Mon, 07 Jun 2021 17:37:14 +0200] rev 11596
net.server_epoll: Fix reporting of socket connect timeout
If the underlying TCP connection times out before the write timeout
kicks in, end up here with err="timeout", which the following code
treats as a minor issue.
Then, due to epoll apparently returning the EPOLLOUT (writable) event
too, we go on and try to write to the socket (commonly stream headers).
This fails because the socket is closed, which becomes the error
returned up the stack to the rest of Prosody.
This also trips the 'onconnect' signal, which has effects on various
things, such as the net.connect state machine. Probably undesirable
effects.
With this, we instead return "connection timeout", like server_event,
and destroy the connection handle properly. And then nothing else
happens because the connection has been destroyed.
Kim Alvefur <zash@zash.se> [Thu, 27 May 2021 09:22:07 +0200] rev 11595
core.certmanager: Skip service certificate lookup for https client
Quick Fix\u{2122} to stop prevent certmanager from automatically adding
a client certificate for net.http.request, since this normally does not
require such.
Kim Alvefur <zash@zash.se> [Fri, 28 May 2021 17:09:22 +0200] rev 11594
core.portmanager: Fix race condition in initialization of SNI cert map
Under some circumstances when hosts and modules are loaded in some
certain order, entries end up missing from the SNI map. This manifests
in e.g. `curl https://localhost:5281/` giving an error about
"unrecognized name".
The `service` argument is `nil` when invoked from the "host-activated"
event, leading it to iterating over every service. And then it would not
be fetching e.g. `http_host` from the config, which explains why https
would sometimes not work due to the missing name entry.
Because when `service` is included, this limits the iteration to
matching entries, while also returning the same value as the `name` loop
variable. Because `name == service when service != nil` we can use name
instead in the body of the loop.
Kim Alvefur <zash@zash.se> [Fri, 28 May 2021 00:17:44 +0200] rev 11593
scansion: Really silence the certificates dir error
certificate_s_, plural, is the directory setting
Kim Alvefur <zash@zash.se> [Thu, 27 May 2021 15:49:57 +0200] rev 11592
scansion: Silence an error from cert indexer due to missing certs dir
Kim Alvefur <zash@zash.se> [Thu, 27 May 2021 12:51:07 +0200] rev 11591
Merge 0.11->trunk
Kim Alvefur <zash@zash.se> [Thu, 27 May 2021 12:35:55 +0200] rev 11590
prosodyctl: Add 'limits' to known globals to warn about misplacing it
It will do nothing in a VirtualHost section for example.
Kim Alvefur <zash@zash.se> [Thu, 27 May 2021 11:18:42 +0200] rev 11589
core.modulemanager: Inherit mod_server_contact_info onto components #1270
Kim Alvefur <zash@zash.se> [Fri, 11 Sep 2020 18:34:36 +0200] rev 11588
mod_server_contact_info: Generate properly escaped URIs from 'admins'
Kim Alvefur <zash@zash.se> [Fri, 11 Sep 2020 18:34:06 +0200] rev 11587
mod_server_contact_info: Apply JID normalization