In case a client loses connection (abrupt disconnection), and another client sends a message to the disconnected one, changes are high that ejabberd will have it as “connected” still.
ejabberd will try to route the message, and it will fail at socket level.
After this event does ejabberd have a hook or something about this specific event? So the server may get aware of a lost message?
Regards,
Thiago
