Open xingxing55 opened 4 years ago
你好,这个项目是基于swoole的1.x开发的,使用的api在swoole协程版本中都不能用了。预计这个月底我会做一次更新,支持新版本的swoole
好的谢谢
你好,这个项目是基于swoole的1.x开发的,使用的api在swoole协程版本中都不能用了。预计这个月底我会做一次更新,支持新版本的swoole
新版本swoole还准备支持么?
哈哈,一直太忙了,我尽量抽时间出来支持一下吧,社畜太难了。
187231450@qq.com
From: mzwang07 Date: 2020-04-13 14:46 To: osgochina/Donkey CC: ClownFish; Comment Subject: Re: [osgochina/Donkey] Fatal error: Uncaught Swoole\Error: must be forked outside the coroutine (#58) 你好,这个项目是基于swoole的1.x开发的,使用的api在swoole协程版本中都不能用了。预计这个月底我会做一次更新,支持新版本的swoole 新版本swoole还准备支持么? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
执行php main.php -s start 提示:Fatal error: Uncaught Swoole\Error: must be forked outside the coroutine in Donkey-0.8/src/include/Process.class.php:21 Stack trace: Donkey-0.8/src/include/Process.class.php(21): Swoole\Process->start() Donkey-0.8/src/include/Crontab.class.php(216): Process->create_process('taskid1', Array) Donkey-0.8/src/include/Crontab.class.php(185): Crontab::do_something(2)
3 {main}
Donkey-0.8/src/include/Process.class.php on line 21
swoole 版本 swoole
Swoole => enabled Author => Swoole Team team@swoole.com Version => 4.4.16 Built => Feb 27 2020 14:45:23 coroutine => enabled kqueue => enabled rwlock => enabled openssl => OpenSSL 1.0.2j 26 Sep 2016 pcre => enabled zlib => 1.2.8 async_redis => enabled
Directive => Local Value => Master Value swoole.enable_coroutine => On => On swoole.enable_library => On => On swoole.enable_preemptive_scheduler => Off => Off swoole.display_errors => On => On swoole.use_shortname => On => On swoole.unixsock_buffer_size => 262144 => 262144
操作系统 macOS Sierra 10.12.6
后来我在Donkey-0.8/src/include/Crontab.class.php 注册定时任务register_timer() 添加 Swoole\Timer::set([ 'enable_coroutine' => false, ]); 禁用协程,再次启动才能正常运行demo,请问是要禁用协程吗