Proper disconnect/reconnect handling?
See original GitHub issueIssue type:
[x] question [ ] bug report [ ] feature request [ ] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[x] mysql
/ mariadb
[ ] oracle
[ ] postgres
[ ] sqlite
[ ] sqljs
[ ] react-native
[ ] expo
TypeORM version:
[x] latest
[ ] @next
[ ] 0.x.x
(or put your version here)
Is there any way to see a dicsonnect event? How to handle it in a proper way? I just don’t know how to get things done in app after db goes down. Keep connection? Drop it and try to reconnect? Haven’t seen any recipes here yet. Thanks for any help and advices.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Understanding and Handling Connection Lifetime Events in ...
This article provides an overview of the SignalR connection, reconnection, and disconnection events that you can handle, and timeout and ...
Read more >Technical Disconnect & Reconnect - Fry-Wagner
Fry-Wagner's technical disconnect-reconnect experts are here to help your company with the proper handling of all electronics during your commercial ...
Read more >Understanding Disconnect / Reconnect Process and Error ...
Question 1. ... When I disable wifi it takes pusher 4 seconds to notice and change the state to disconnected and then to...
Read more >What's the correct way to handle disconnects/reconnects with ...
I'm using Lobbies and Relay to handle the matchmaking, and Netcode for game ... This is the correct way to do it until...
Read more >Feeling disconnected: 11 Steps to Reconnect with Yourself ...
A lack of connection with yourself often stems from exhaustion in general and you need to give yourself the proper care and love...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Any news on this? I don’t think the code to close all connections addresses the problem - the question (I think) is how to catch the error that the connection has died and then try to reconnect.
I’m facing the issue that once the database server (MySQL) is down (and I’m getting a “Pool does not exist” error), it does not recover, even if the database comes back up again. I need to manually restart the server to trigger a re-connect attempt. Is there any way to automatically do this?
+1 same question.