eee
This commit is contained in:
@@ -225,6 +225,9 @@ class Command extends Component
|
|||||||
protected function isRefresh(Throwable $throwable): bool
|
protected function isRefresh(Throwable $throwable): bool
|
||||||
{
|
{
|
||||||
$message = $throwable->getMessage();
|
$message = $throwable->getMessage();
|
||||||
|
if (str_contains($message, 'Connection timed out')) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// MySQL 错误处理
|
// MySQL 错误处理
|
||||||
if (str_contains($message, 'MySQL server has gone away')) {
|
if (str_contains($message, 'MySQL server has gone away')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user