-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
windows swoole-cli-v4.8.13-cygwin-x64 使用协程监听的Channel数据然后插入数据库,插入没几条就报错了! #5331
Comments
你试试高版本的swoole-cli会不会出现这个问题 |
出现这个错误的原因可能有很多,包括代码中的并发处理、Cygwin环境的兼容性问题或其他潜在的代码错误。这里有一些建议和调试步骤,可以帮助你解决这个问题:
调试示例 php |
swoole-cli-v5.0.3 一样有这个问题 |
我发现在上面代码的基础上加\Swoole\Coroutine::sleep(0.1); 就没有报错
究竟是为什么? |
把协程数量 |
建议使用 wsl2 环境,cygwin 环境很难跟踪调试,除了问题也不好排查 |
环境:windows10 安装包:swoole-cli-v4.8.13-cygwin-x64.zip
数据库结构:
swoole运行代码:
返回结果报错:0 [main] swoole-cli 1802 cygwin_exception::open_stackdumpfile: Dumping stack trace to swoole-cli.exe.stackdump
然后报错的 swoole-cli.exe.stackdump的信息:
请问是什么问题该如何使得在消费协程中 可以把数据插到数据库
The text was updated successfully, but these errors were encountered: