Skip to content

Commit 4210258

Browse files
author
Rihards Ščeredins
authoredApr 8, 2021
Add more messages for detecting lost connection (happens during managed PostgreSQL upgrade on DigitalOcean) (#36911)
1 parent f1e98e6 commit 4210258

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/Illuminate/Database/DetectsLostConnections.php

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ protected function causedByLostConnection(Throwable $e)
5252
'Temporary failure in name resolution',
5353
'SSL: Broken pipe',
5454
'SQLSTATE[08S01]: Communication link failure',
55+
'SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host',
56+
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: No route to host',
5557
]);
5658
}
5759
}

0 commit comments

Comments
 (0)