Skip to content

Commit 9b02512

Browse files
Add new error message "SSL: Handshake timed out" handling to PDO Detects Lost Connections (#47392)
After upgrading Laravel from 9 to 10.13.2 and PHP from 8.1 to 8.2 I started to see some strange errors in logs. They might happen 1 per 1-2 hours only in Scheduled commands. I'm using Vapor and base image of docker php8.2. Using RDS cluster. Adding new error messages to detect connection was lost helped me to fix issue.
1 parent f9a6933 commit 9b02512

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
@@ -62,6 +62,7 @@ protected function causedByLostConnection(Throwable $e)
6262
'SSL: Operation timed out',
6363
'Reason: Server is in script upgrade mode. Only administrator can connect at this time.',
6464
'Unknown $curl_error_code: 77',
65+
'SSL: Handshake timed out',
6566
]);
6667
}
6768
}

0 commit comments

Comments
 (0)