This commit is contained in:
2026-07-27 08:53:58 +08:00
parent 153fd6279a
commit 3bb0716c16
+3
View File
@@ -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')) {