Skip to content

Commit 9d9533f

Browse files
kanidjarKevin Anidjar
andauthored
[8.x] Add lost connection messages for MySQL persistent connections (#35224)
* [Mysql] Add lost connection messages for persistent connections * Fix style Co-authored-by: Kevin Anidjar <kevin.anidjar@total.com>
1 parent 408b899 commit 9d9533f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Database/DetectsLostConnections.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ protected function causedByLostConnection(Throwable $e)
4545
'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.',
4646
'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again',
4747
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected',
48+
'SQLSTATE[HY000] [2002] Connection timed out',
49+
'SSL: Connection timed out',
4850
]);
4951
}
5052
}

0 commit comments

Comments
 (0)