Skip to content

Commit 76a94c8

Browse files
sfilzekdriesvints
authored andcommitted
Update DetectsLostConnections.php (#35744)
AWS Aurora serverless DB sometimes aborts queries while performing scaling. The error returned is: "SQLSTATE[HY000]: General error: 1105 The last transaction was aborted due to Seamless Scaling. Please retry."
1 parent 53e91ef commit 76a94c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Illuminate/Database/DetectsLostConnections.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ 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',
50+
'SQLSTATE[HY000]: General error: 1105 The last transaction was aborted due to Seamless Scaling. Please retry.',
4851
]);
4952
}
5053
}

0 commit comments

Comments
 (0)