Jump to content

[Java] IpConnection auto reconnect deadlock?


JavaLaurence

Recommended Posts

Hi,

 

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?

 

Thx.

Screen_Shot_2013-05-13_at_Monday_13_May_2013.thumb.png.cb560d7cc182a45799f8289533117289.png

Link zu diesem Kommentar
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.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...