From f7bee97e2dfefc2fb13e842d9df388f1fdfb6f80 Mon Sep 17 00:00:00 2001 From: Markus Podar Date: Thu, 9 Jan 2025 21:27:05 +0100 Subject: [PATCH] [11.x] Refine error messages for detecting lost connections (Debian bookworm compatibility) (#54111) Same as https://github.com/laravel/framework/pull/53794 , which was for L10, but this time for L11 --- src/Illuminate/Database/DetectsLostConnections.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Database/DetectsLostConnections.php b/src/Illuminate/Database/DetectsLostConnections.php index 597d35305a57..f489b28409dc 100644 --- a/src/Illuminate/Database/DetectsLostConnections.php +++ b/src/Illuminate/Database/DetectsLostConnections.php @@ -63,8 +63,8 @@ protected function causedByLostConnection(Throwable $e) 'Reason: Server is in script upgrade mode. Only administrator can connect at this time.', 'Unknown $curl_error_code: 77', 'SSL: Handshake timed out', - 'SQLSTATE[08006] [7] SSL error: sslv3 alert unexpected message', - 'SQLSTATE[08006] [7] unrecognized SSL error code:', + 'SSL error: sslv3 alert unexpected message', + 'unrecognized SSL error code:', 'SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it', 'SQLSTATE[HY000] [2002] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', 'SQLSTATE[HY000] [2002] Network is unreachable',