easy-swoole / words-match

17 stars 5 forks source link

swoole4.6 报协程死锁 #31

Open lujihong opened 3 years ago

lujihong commented 3 years ago

=================================================================== [FATAL ERROR]: all coroutines (count: 1) are asleep - deadlock!

[Coroutine-1]

0 Swoole\Coroutine\Socket->accept() called at [/opt/www/vendor/easyswoole/component/src/Process/Socket/AbstractUnixProcess.php:38]

1 EasySwoole\Component\Process\Socket\AbstractUnixProcess->run() called at [/opt/www/vendor/easyswoole/words-match/src/Process/DFAProcess.php:36]

2 EasySwoole\WordsMatch\Process\DFAProcess->run() called at [/opt/www/vendor/easyswoole/component/src/Process/AbstractProcess.php:153]

Player626 commented 3 years ago

这不是死锁,协程在sleep,等待事件通知.

lujihong commented 3 years ago

这不是死锁,协程在sleep,等待事件通知. 那就是swoole 误报了?

Player626 commented 3 years ago

你也不能这么理解,你记住不是死锁就行了.

lujihong commented 3 years ago

报这个错没影响吧