ejabberd - Comments for "Message loss airplane mode" https://www.ejabberd.im/forum/25286/message-loss-airplane-mode en You might also want to look https://www.ejabberd.im/forum/25286/message-loss-airplane-mode#comment-66462 <p>You might also want to look into our <a href="https://www.ejabberd.im/faq/tcp">FAQ entry</a> on that topic. And possibly into <noindex><a href="http://xmpp.org/extensions/xep-0313.html" rel="nofollow" >server-side archiving</a></noindex>.</p> Mon, 21 Dec 2015 13:43:41 +0000 holger comment 66462 at https://www.ejabberd.im Enabling stream management https://www.ejabberd.im/forum/25286/message-loss-airplane-mode#comment-66460 <p>Enabling stream management should solve this. Stream management is designed as a solution for unreliable network. When the user enables flight mode while in the app, the server has no way to decide if the user is online or not. It keeps the connection open until 'tcp_timeout' even if the user is not connected to network. The server assumes that the user is connected and relays the messages to him which ofcourse is lost.</p> <p>After enabling stream management, the messages are kept in a queue on the server and are deleted only after an ack from the user.</p> Mon, 21 Dec 2015 12:46:49 +0000 vamshis comment 66460 at https://www.ejabberd.im