Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize all domain fronting code one time on startup #1452

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

myleshorton
Copy link
Contributor

The current startup sequence suffers from some byzantine code for initializing the stored global config (either embedded or saved), which is then required for initializing all fronting code that is necessary for config fetches, particularly for first time users. This is exacerbated by the getlantern/fronted code, which is very rapidly initialized twice in many cases -- once with using the global config on disk, and once using the fetched global config. In that process, any previously verified and working fronts are discarded, but also any code unlucky enough to be called prior to the new global config being fetched keeps mindlessly chugging through outdated fronts.

This attempts to address all that by initializing the fronting code right away in a straightforward manner and then updating the fronting code with new fronts from the network vs replacing it wholesale.

@myleshorton myleshorton marked this pull request as draft November 26, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant