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

Server crashing from running in another thread #39

Open
luminosoda opened this issue May 29, 2023 · 1 comment
Open

Server crashing from running in another thread #39

luminosoda opened this issue May 29, 2023 · 1 comment

Comments

@luminosoda
Copy link

Currently, starting server from thread different from main cause error in ZeroServer._start_server method:

util.register_signal_term(self._sig_handler)

Removing signal registration makes everything work!

@Ananto30
Copy link
Owner

Interesting! I think that is because you are running this kind of "daemon" thread or background process and signal handlers are for the main thread usually. But I want to make sure, can you please share the error stack?
And can you please share how you are trying to start in a different thread?

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

No branches or pull requests

2 participants