cli模式下,每隔一段时间会报Connection timed out

浏览:1861 发布日期:2018/01/24 分类:求助交流
【当前版本】tp5.0.14
使用workerman的定时器跑业务 。 每隔一段时间会报一次这个错误 ,看了下报错位置

/**
* 释放查询结果
* @access public
*/
public function free()
{
$this->PDOStatement = null;
}

有没遇到过该问题或了解该问题的朋友,求指点下

错误日志:

[ 2018-01-24T09:03:51+08:00 ][ error ] [8]think\db\Connection::free(): send of 9 bytes failed with errno=110 Connection timed out[/www/wwwroot/tianyu/thinkphp/library/think/db/Connection.php:316]
[ 2018-01-24T09:07:52+08:00 ][ error ] [8]think\db\Connection::free(): send of 9 bytes failed with errno=110 Connection timed out[/www/wwwroot/tianyu/thinkphp/library/think/db/Connection.php:316]
[ 2018-01-24T09:56:51+08:00 ][ error ] [8]think\db\Connection::free(): send of 9 bytes failed with errno=110 Connection timed out[/www/wwwroot/tianyu/thinkphp/library/think/db/Connection.php:316]
[ 2018-01-24T10:01:32+08:00 ][ error ] [8]think\db\Connection::free(): send of 9 bytes failed with errno=110 Connection timed out[/www/wwwroot/tianyu/thinkphp/library/think/db/Connection.php:316]
[ 2018-01-24T13:05:51+08:00 ][ error ] [8]think\db\Connection::free(): send of 9 bytes failed with errno=110 Connection timed out[/www/wwwroot/tianyu/thinkphp/library/think/db/Connection.php:316]
[ 2018-01-24T13:14:50+08:00 ][ error ] [8]think\db\Connection::free(): send of 9 bytes failed with errno=110 Connection timed out[/www/wwwroot/tianyu/thinkphp/library/think/db/Connection.php:316]
最佳答案
评论() 相关
后面还有条评论,点击查看>>