Skip to content

Commit

Permalink
Add more messages for detecting lost connection (happens during manag…
Browse files Browse the repository at this point in the history
…ed PostgreSQL upgrade on DigitalOcean) (#36911)
  • Loading branch information
Rihards Ščeredins authored Apr 8, 2021
1 parent f1e98e6 commit 4210258
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 @@ -52,6 +52,8 @@ protected function causedByLostConnection(Throwable $e)
'Temporary failure in name resolution',
'SSL: Broken pipe',
'SQLSTATE[08S01]: Communication link failure',
'SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host',
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: No route to host',
]);
}
}

0 comments on commit 4210258

Please sign in to comment.