question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proper disconnect/reconnect handling?

See original GitHub issue

Issue 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

23reactions
FlorianPfisterercommented, May 25, 2020

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?

0reactions
thgiangcommented, Aug 27, 2021

+1 same question.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found