From e27c174142fad07b83888cbbe317c4f55e48aa29 Mon Sep 17 00:00:00 2001 From: Kevin Anidjar Date: Sun, 15 Nov 2020 13:38:47 +0100 Subject: [PATCH 1/2] [Mysql] Add lost connection messages for persistent connections --- 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 72132c164df7..37d03bb9e8e5 100644 --- a/src/Illuminate/Database/DetectsLostConnections.php +++ b/src/Illuminate/Database/DetectsLostConnections.php @@ -45,6 +45,8 @@ protected function causedByLostConnection(Throwable $e) 'The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection.', 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again', 'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected', + 'SQLSTATE[HY000] [2002] Connection timed out', + 'SSL: Connection timed out' ]); } } From d7e8f57f47f4a7d72a749bcc48e1c56dddd40696 Mon Sep 17 00:00:00 2001 From: Kevin Anidjar Date: Sun, 15 Nov 2020 13:50:40 +0100 Subject: [PATCH 2/2] Fix style --- src/Illuminate/Database/DetectsLostConnections.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Database/DetectsLostConnections.php b/src/Illuminate/Database/DetectsLostConnections.php index 37d03bb9e8e5..de7a65280ca4 100644 --- a/src/Illuminate/Database/DetectsLostConnections.php +++ b/src/Illuminate/Database/DetectsLostConnections.php @@ -46,7 +46,7 @@ protected function causedByLostConnection(Throwable $e) 'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again', 'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected', 'SQLSTATE[HY000] [2002] Connection timed out', - 'SSL: Connection timed out' + 'SSL: Connection timed out', ]); } }