mauritslamers / Thoth

A Node-based communications hub for multi-user SproutCore applications, serving as a unified database interface and automating distribution of data changes
http://devmt.hku.nl/~maurits/doku.php?id=thoth:start
43 stars 4 forks source link

Connection resume failure #4

Open mauritslamers opened 12 years ago

mauritslamers commented 12 years ago

Because of the way Thoth uses socket.io, there is a problem with resuming sessions. This problem can cause Thoth to crash if not run in non-debug mode, but more importantly will cause loss of requests or updates.

The current workaround is to force the client to login again.

The solution will be that ThothSC will automatically try to reauthenticate when a lost connection is detected in order to resume the session, and will give the application callback a message if this reauthentication fails.