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

fix: Better initialization of NEX server accounts #29

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

DaniElectra
Copy link
Member

Resolves #XXX

Changes:

Initializing the server accounts in their own thread (e.g. the authentication and secure servers) can cause a race condition where the secure account hasn't been set up yet when authentication configures ticket-granting, causing sometimes crashes on startup.

This has happened on production causing unnecesary restarts. To fix this, initialize the accounts on the init function to ensure they will always be accessible when needed.

Initializing the server accounts in their own thread (e.g. the
authentication and secure servers) can cause a race condition where the
secure account hasn't been set up yet when authentication configures
`ticket-granting`, causing sometimes crashes on startup.

This has happened on production causing unnecesary restarts. To fix
this, initialize the accounts on the `init` function to ensure they will
always be accessible when needed.
@jonbarrow
Copy link
Member

Looks good to me. This should become the standard

@jonbarrow jonbarrow merged commit 3377ef2 into PretendoNetwork:nex-go-rewrite Nov 6, 2024
1 check passed
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.

2 participants