Skip to content

Commit

Permalink
Fixed bug that the PDO connection was broken when timed out. (#6303)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Nov 21, 2023
1 parent e2f627a commit 6b50e0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DetectsLostConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ protected function causedByLostConnection(Throwable $e): bool
'Packets out of order. Expected',
'Broken pipe',
'Error reading result',
// PDO::prepare(): Send of 77 bytes failed with errno=110 Operation timed out
// SSL: Handshake timed out
// SSL: Operation timed out
// SSL: Connection timed out
// SQLSTATE[HY000] [2002] Connection timed out
'timed out',
]);
}
}

0 comments on commit 6b50e0a

Please sign in to comment.