-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Event loop not ending for thread #109
Comments
Thanks for the report. I saw this problem on linux too. I'll have a look. |
Any progress? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
Using WSL with Ubuntu, GCC 11.1.0 and CMake to build my project with lithium I have the following issue
In my main I have:
auth registers an empty post handler on /auth/login
The server starts fine, and if I don't call the login endpoint, it also stops fine with ctrl+C, (sending SIGTERM):
However, If I call the login endpoint before trying to exit, one of the threads (the one that handled the request) gets stuck:
From the 6 threads only 5 reaches end of event loop, then it only stops with sending SIGKILL to the main thread
Without the kill signal, the server actually continues to serve requests with that one thread:
(Here I have spdlog set up to see what's happening, but the same thing happens without any extra code)
What could be the reason for this? Am I missing something to properly shut the server down?
Any help or suggestion is greatly appreciated
Thank you in advance!
The text was updated successfully, but these errors were encountered: