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

Program does not terminate after HTTP server init error #114

Open
majent4 opened this issue Feb 6, 2024 · 2 comments
Open

Program does not terminate after HTTP server init error #114

majent4 opened this issue Feb 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@majent4
Copy link
Contributor

majent4 commented Feb 6, 2024

No description provided.

@Cavonstavant Cavonstavant added the bug Something isn't working label Feb 8, 2024
@Cavonstavant
Copy link
Contributor

Cavonstavant commented Feb 9, 2024

@majent4 This bug is due to the fact that the main thread is not notified of the end of the async task created by

// lib.rs:74
tokio::spawn(async move {
    server.start().await;
});

A solution would be to use a Condvar shared between all of the services that runs inside a task or a thread.
I didn't looked up if there was an integrated solution using tokio yet

@majent4
Copy link
Contributor Author

majent4 commented Feb 9, 2024

@majent4 This bug is due to the fact that the main thread is not notified of the end of the async task created by

// lib.rs:74
tokio::spawn(async move {
    server.start().await;
});

A solution would be to use a Condvar shared between all of the services that runs inside a task or a thread. I didn't looked up if there was an integrated solution using tokio yet

Interesting input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants