Skip to content

Commit

Permalink
[11.x] Detect Cockroach DB connection loss (#51559)
Browse files Browse the repository at this point in the history
* added possible cockroach db connection error-messages

* syntax changes
  • Loading branch information
saschaglo authored May 24, 2024
1 parent e7d3a54 commit db7a331
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Database/DetectsLostConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ protected function causedByLostConnection(Throwable $e)
'SQLSTATE[HY000]: General error: 3989',
'went away',
'No such file or directory',
'server is shutting down',
'failed to connect to',
]);
}
}

0 comments on commit db7a331

Please sign in to comment.