Annotate

TODO @ 11590:5aafb832c91b

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.
author Kim Alvefur <zash@zash.se>
date Fri, 28 May 2021 17:09:22 +0200
parent 9803:35ef6af41600
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5405
4f98f2f60e22 TODO: Remove 0.9
Matthew Wild <mwild1@gmail.com>
parents: 4938
diff changeset
1 == 1.0 ==
4138
62f5e6b11571 TODO: Update for 0.9 milestones
Matthew Wild <mwild1@gmail.com>
parents: 4134
diff changeset
2 - Roster providers
62f5e6b11571 TODO: Update for 0.9 milestones
Matthew Wild <mwild1@gmail.com>
parents: 4134
diff changeset
3 - Clustering
2663
b3d1c4985182 TODO: Update
Matthew Wild <mwild1@gmail.com>
parents: 1520
diff changeset
4 - World domination