diff --git a/Command.php b/Command.php index 2667f2c..1bd9ada 100644 --- a/Command.php +++ b/Command.php @@ -225,6 +225,9 @@ class Command extends Component protected function isRefresh(Throwable $throwable): bool { $message = $throwable->getMessage(); + if (str_contains($message, 'Connection timed out')) { + return true; + } // MySQL 错误处理 if (str_contains($message, 'MySQL server has gone away')) {