Skip to content

Commit

Permalink
[8.x] Add lost connection messages for MySQL persistent connections (#…
Browse files Browse the repository at this point in the history
…35224)

* [Mysql] Add lost connection messages for persistent connections

* Fix style

Co-authored-by: Kevin Anidjar <kevin.anidjar@total.com>
  • Loading branch information
kanidjar and Kevin Anidjar committed Nov 16, 2020
1 parent 408b899 commit 9d9533f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Database/DetectsLostConnections.php
Expand Up @@ -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',
]);
}
}

0 comments on commit 9d9533f

Please sign in to comment.