swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.58k stars 788 forks source link

数据库链接异常 #1395

Open 583128870 opened 3 years ago

583128870 commented 3 years ago
Q A
Bug report? yes/no
Feature request? yes/no
Swoft version 2.0.9
Swoole version 4.5.7
PHP version 7.2.34
Runtime environment Docker etc.

Describe the bug 2020/11/18-09:52:25 [WARNING] Swoft\Connection\Pool\AbstractPool:popByChannel(287) popByChannel close connection error Swoft\Db\Connection\Connection::close(): Send of 5 bytes failed with errno=32 Broken pipe [2020-11-18 09:52:25 *24.1] WARNING swSignalfd_onSignal (ERRNO 707): Unable to find callback function for signal Broken pipe: 13 Pool error is Swoft\Connection\Pool\AbstractPool::popByChannel(): Send of 5 bytes failed with errno=32 Broken pipe file=/var/www/swoft/vendor/swoft/connection-pool/src/AbstractPool.php line=277

Expected behavior 接口查询操作返回异常 Pool error is Swoft\Connection\Pool\AbstractPool::popByChannel(): Send of 5 bytes failed with errno=32 Broken pipe file=/var/www/swoft/vendor/swoft/connection-pool/src/AbstractPool.php line=277 命令窗口 2020/11/18-09:52:25 [WARNING] Swoft\Connection\Pool\AbstractPool:popByChannel(287) popByChannel close connection error Swoft\Db\Connection\Connection::close(): Send of 5 bytes failed with errno=32 Broken pipe [2020-11-18 09:52:25 *24.1] WARNING swSignalfd_onSignal (ERRNO 707): Unable to find callback function for signal Broken pipe: 13 Screenshots If applicable, add screenshots to help explain your problem.

Details

Describe what you are trying to achieve and what goes wrong.

// paste output here

Provide minimal script to reproduce the issue

// paste code
sakuraovq commented 3 years ago

fix 可能 swoole 高版本的异常