Skip to content

Commit 245e891

Browse files
authored
Add new error messages for detecting lost connections (#47398)
Ever since I moved from AWS Aurora to using AWS RDS Proxy, which (similar to pgbouncer) is essential to not overload the primary database with connection, I sporadically see these messages. This affects scheduled tasks, worker, HTTP requests; it's across the whole board. This happened across different PHP versions (7.4, 8.2) and different docker base OS images, as well as different Laravel version (8.x, 10.x).
1 parent 9b02512 commit 245e891

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
@@ -63,6 +63,8 @@ protected function causedByLostConnection(Throwable $e)
6363
'Reason: Server is in script upgrade mode. Only administrator can connect at this time.',
6464
'Unknown $curl_error_code: 77',
6565
'SSL: Handshake timed out',
66+
'SQLSTATE[08006] [7] SSL error: sslv3 alert unexpected message',
67+
'SQLSTATE[08006] [7] unrecognized SSL error code:',
6668
]);
6769
}
6870
}

0 commit comments

Comments
 (0)