Skip to content

Commit

Permalink
Add new error message "SSL: Handshake timed out" handling to PDO Dete…
Browse files Browse the repository at this point in the history
…cts 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.
  • Loading branch information
yehorherasymchuk authored Jun 9, 2023
1 parent f9a6933 commit 9b02512
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Database/DetectsLostConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ protected function causedByLostConnection(Throwable $e)
'SSL: Operation timed out',
'Reason: Server is in script upgrade mode. Only administrator can connect at this time.',
'Unknown $curl_error_code: 77',
'SSL: Handshake timed out',
]);
}
}

0 comments on commit 9b02512

Please sign in to comment.