Skip to content

Commit

Permalink
detect read-only mode error as a lost connection
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmastech committed Sep 24, 2023
1 parent ebb780c commit a88ac20
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 @@ -66,6 +66,7 @@ protected function causedByLostConnection(Throwable $e)
'SQLSTATE[08006] [7] SSL error: sslv3 alert unexpected message',
'SQLSTATE[08006] [7] unrecognized SSL error code:',
'SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it',
'is in read-only mode',
]);
}
}

0 comments on commit a88ac20

Please sign in to comment.