You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
educoder/sail.js@49210a5 is an attempt at implementing auto-reconnect, but I'm not sure it works. Strophe already does a bunch of magic to buffer messages until they can be sent out, and it looks like it may already be doing its own auto-reconnect.
In any case the improper-addressing error seems to be generated by the server once the client has been offline too long. I tried increasing mod_http_bind's max_inactivity from 20 seconds to 60 seconds, and I'm hoping this will make the server more tolerant. Making the timeout any longer is problematic because Strophe has it's own built-in 66 second timeout... we can extend this too, but that might lead to yet other problems and necessary adjustments.
Long term I wonder if the solution will be a switch from BOSH to WebSockets. In theory we should get simpler, more reliable connectivity with WebSockets, but not sure how soon that will happen.
Seeing these errors occasionally:
FAILED TO CONNECT TO XMPP SERVER AS [email protected] BECAUSE: improper-addressing (connect_connfail)
Seems to happen when the tablet/client momentarily looses internet connectivity. Fix might be to catch this error and try to automatically reconnect.
The text was updated successfully, but these errors were encountered: