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.

No way to detect dead AMI connection

See original GitHub issue

I have been dealing with an AMI connection that timeout a lot and can therefore happen to be in a reconnecting state when it is contacted. This is giving me all sorts of fun issues to deal with.

When an action is send to AsterNET while the socket is reconnecting or lost, it throws a SystemException (ManagerConnection.cs#L2029) which really threw me for a loop at first.

The only way to detect if the connection is reconnecting or if the socket has truly been lost (failed to reconnect ReconnectRetryMax number of times), is by subscribing to the ConnectionState event and checking the Reconnect property of the DisconnectEvent (ManagerConnection.cs#L1906).

I would very much like a way to see if AsterNET has failed to reconnect in another way too. Maybe IsConnected (ManagerConnection.cs#L1955) should be changed to return true if it is currently attempting to reconnect even if the socket isn’t connected, a separate property could be used to check the socket state.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:9

github_iconTop GitHub Comments

DaveShopCtrlcommented, Jan 23, 2020

When you consider to remove the IsConnected property, maybe replace it with an ConnectionState property that returns an enumeration value to indicate it’s state (closed, connecting, open) similar to SqlConnection.State property?

voicentercommented, Jun 27, 2018

As a long time user in the lib this issue his the number one problem maker in hour system , if any help on testing needed let us know , Many thanks in advanced Shlomi Gutman

Read more comments on GitHub >

github_iconTop Results From Across the Web

Postmortem diagnosis of acute myocardial infarction in ...
Normally, DAD is associated with an intense inflammatory response, which is sometimes related to the cause of death and may be associated with...
Read more >
Troubleshoot instances with failed status checks
The following information can help you troubleshoot issues if your instance fails a status check. First determine whether your applications are exhibiting ...
Read more >
Diagnostic markers of acute myocardial infarction - PMC
Studies have shown that elevated BNP is a predictive marker of death and heart failure. However, they are not useful for the diagnosis...
Read more >
Chapter 10. Detecting Dead Connections Red Hat AMQ 7.4
Detecting Dead Connections from the Client Side. As long as it is receiving data from the broker, the client considers a connection to...
Read more >
Heart attack - Diagnosis & treatment
Electrocardiogram (ECG or EKG ). This first test done to diagnose a heart attack records electrical signals as they travel through the heart....
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 Post

No results found

github_iconTop Related Hashnode Post

No results found