-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Relaunch on error's behavior? #1966
Comments
Just being curious, how would drogon interfered with NanoMQ, our parallel computing framework is pure C implemented, not base on drogon. nevermind, I guess what you mean is the archived nanomq project |
relaunchOnError starts a child process using fork. The fork syscall may mess up with opened files and sockets. That might be the problem. |
Is it normal that it interfered with |
'relaunchOnError ' is not a method that can rescue your program from failing. It acts just like systemd, which will restart the program again when it dies. Everything will become obsolete after relauching. When this option is actually triggered, it means your program has fatal bugs in it, and you should find and fix it. |
Yeah I'll have to perform some tests to find out if that |
@Mis1eader-dev I misunderstood your situation. I thought you I never use the I sugguest you disable the |
@hwc0919 do you recommend something different than |
I recommand to use async or coroutine apis, so you don't need an task queue. If you are using something that only has sync api, you might need a task queue. The |
I do use a synchronous database API, namely rocksdb, so |
Continuing off from this trantor issue, it seems if drogon has the relaunchOnError option enabled, it interferes with other libraries and causes them to crash, and it completely disables
trantor::ConcurrentTaskQueue::runTaskInQueue
, which in turn stopped all database operations.What is the behavior of that option? It interfered with nanomq's concurrency model too once it got turned on, and started causing crashes.
The text was updated successfully, but these errors were encountered: