From 9b025125c611e99aaab79c42e5a82ac2a7ed8a50 Mon Sep 17 00:00:00 2001 From: Yehor Herasymchuk Date: Fri, 9 Jun 2023 21:27:56 +0100 Subject: [PATCH] Add new error message "SSL: Handshake timed out" handling to PDO Detects Lost Connections (#47392) After upgrading Laravel from 9 to 10.13.2 and PHP from 8.1 to 8.2 I started to see some strange errors in logs. They might happen 1 per 1-2 hours only in Scheduled commands. I'm using Vapor and base image of docker php8.2. Using RDS cluster. Adding new error messages to detect connection was lost helped me to fix issue. --- src/Illuminate/Database/DetectsLostConnections.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Database/DetectsLostConnections.php b/src/Illuminate/Database/DetectsLostConnections.php index a0af5f3c7658..07f9562cfd92 100644 --- a/src/Illuminate/Database/DetectsLostConnections.php +++ b/src/Illuminate/Database/DetectsLostConnections.php @@ -62,6 +62,7 @@ protected function causedByLostConnection(Throwable $e) 'SSL: Operation timed out', 'Reason: Server is in script upgrade mode. Only administrator can connect at this time.', 'Unknown $curl_error_code: 77', + 'SSL: Handshake timed out', ]); } }