踩坑教训

Swoole 异常疑难杂症 求解

By karp 1865 Views 3 MIN READ 0 Comments

问题很难搞呀 下面是抛错

[2019-08-26 11:08:03 $26288.0]  WARNING swManager_check_exit_status: worker#1 abnormal exit, status=0, signal=11
A bug occurred in Swoole-v4.2.12, please report it.
The Swoole developers probably don't know about it,
and unless you report it, chances are it won't be fixed.
You can read How to report a bug doc before submitting any bug reports:
>> https://github.com/swoole/swoole-src/issues/2000
Please do not send bug reports in the mailing list or personal letters.
The issue page is also suitable to submit feature requests.

代码如下 就是调用了常量 就抛错....

code...
RedisKeys::HEDGE_USER_LAST_ID_HASH

问题规避掉了

   // 原代码 
   \swoole_timer_tick(300, [self::class, 'hedgeProcessor']);

   // 修改后 
    \swoole_timer_tick(300, function() {
        self::hedgeProcessor();
    });

问题并没有解决 , 最近心累 不想提bug 再去沟通 先把bug 解决再说
原因暂不调查

本文由 karp 原创

采用 CC BY-NC-SA 4.0 协议进行许可

转载请注明出处:https://www.ikarp.top/index.php/archives/398.html

标签: swoole

0 评论