Skip to content

Commit 006180a

Browse files
authored
Retry if DNS lookup fails (#35790)
1 parent 4686f22 commit 006180a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Illuminate/Database/DetectsLostConnections.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ protected function causedByLostConnection(Throwable $e)
4444
'running with the --read-only option so it cannot execute this statement',
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',
47+
'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known',
4748
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected',
4849
'SQLSTATE[HY000] [2002] Connection timed out',
4950
'SSL: Connection timed out',

0 commit comments

Comments
 (0)