Closed prabhugithubme closed 1 year ago
When a client disconnects, ejabberd takes 2 minutes to notice that?
Maybe mod_ping helps, see https://docs.ejabberd.im/admin/configuration/modules/#mod-ping
Are you using stream management with resume option? If so that how it works, it keeps your sesssion alive for some time to allow resuming it in case connection get dropped.
The issue here is - if sudden internet off ... The status of the current user is not reflected to opponent.
For Ex:
User A and User B both are chatting. In certain situation internet connection gone from User A that time How user B will know about the presence status of User A?.
So how to show presence status to all others about User A is not in live in that situation?.
That's how TCP/IP work. If you want to go further, you need to configure extra checks as suggested using mod_ping or stream management.
In Client application if we do suddenly Internet data -OFF the Presence status not reflected to opponents.
In this case after around 2 minutes only server side socket( client App to server socket) getting closed. So until that in others roaster list about this user presence status is online. pls guide me to resolve this issue.
I am sharing module config details from ejabberd.yml .
Environment
erl +V
Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml