For the quickest reply, please use our new Customer Helpdesk and Feedback platform
 
   
 
Any Message Delivery Failed Hook?
Posted: 02 January 2012 02:02 PM   [ Ignore ]
Junior Member
Avatar
RankRank
Total Posts:  38
Joined  2009-11-19

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

Profile
 
 
Posted: 02 January 2012 04:33 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  600
Joined  2006-11-12

There is no hook for that. This is something we handle at the protocol level in our TextOne protocol.

Profile
 
 
Posted: 03 January 2012 01:43 PM   [ Ignore ]   [ # 2 ]
Junior Member
Avatar
RankRank
Total Posts:  38
Joined  2009-11-19

Cool :) For message we can solve on protocol level.

A different question but towards the same topics, does ejabberd still use the system TCP KeepAlive to disconnect users? Or that is deprecated?
I’m not using it for detecting message arrival, but to detect presence.

Regards,
Thiago

Profile