Closed allsilaevex closed 4 months ago
Exceptions thrown in coroutines need to be caught using try-catch, or it will cause the process to exit. https://wiki.swoole.com/en/#/getting_started/notice?id=capturing-runtime-exceptionserrors-in-coroutine
@NathanFreeman you're right, but should terminating the process for any reason cause a deadlock on the server?
it seems that even if the process was terminated, the concurrency value should decrease and the server should continue accepting requests (since a new process is created) but concurrency decreases only in swoole_http_server_onAfterResponse - it doesn't take into account process crashing
I reproduced it, let me see how to resolve it.
Please answer these questions before submitting your issue.
You can reproduce the error using the following steps:
After running
wrk
I expect to see:After running
wrk
I see:php --ri swoole
)?uname -a
&php -v
&gcc -v
) ?