From 245e891e3ab17132a2aaeb6c1e32b80ec5426c68 Mon Sep 17 00:00:00 2001 From: Markus Podar Date: Sat, 10 Jun 2023 19:51:38 +0200 Subject: [PATCH] Add new error messages for detecting lost connections (#47398) Ever since I moved from AWS Aurora to using AWS RDS Proxy, which (similar to pgbouncer) is essential to not overload the primary database with connection, I sporadically see these messages. This affects scheduled tasks, worker, HTTP requests; it's across the whole board. This happened across different PHP versions (7.4, 8.2) and different docker base OS images, as well as different Laravel version (8.x, 10.x). --- src/Illuminate/Database/DetectsLostConnections.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Illuminate/Database/DetectsLostConnections.php b/src/Illuminate/Database/DetectsLostConnections.php index 07f9562cfd92..bd23bbc6e7d1 100644 --- a/src/Illuminate/Database/DetectsLostConnections.php +++ b/src/Illuminate/Database/DetectsLostConnections.php @@ -63,6 +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:', ]); } }