Jump to content

[Java] IpConnection auto reconnect deadlock?


Recommended Posts



To try and get round the now-and-again problem of my stack locking up (not just crashing, but totally locking up), I plugged my stack's power-supply in an IKEA 2 euro timer switch. Every 6 hours, I let the timer switch cut the power for 30 mins, thus ensuring that my stack is (hard) reset every 6 hours.


I thought that the TF API auto reconnect feature would ensure my controlling program would be able to reconnect to my stack every time, albeit after trying for 30 minutes each time the stack power is cut.


Unfortunately, my program fails to auto-reconnect most of the time.


I'm attaching a screenshot of the Eclipse debugger showing the main thread suspended .. to show what it is doing. The thread always appears to be waiting on a socketMutex.


Could this be a bug? Or am I missing something else?




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...