[ejabberd] Modify presence probe response for offline clients

Peter Saint-Andre stpeter at stpeter.im
Mon Dec 15 18:43:59 MSK 2008


Evgeniy Khramtsov wrote:
> Peter Saint-Andre wrote:
> 
>> True, but IMHO it is more efficient to send the last presence
>> inresponse to a probe, rather than forcing the client to send an IQ to
>> the contact's server and then receive a reply. The client has already
>> requested presence via the probe, why not reply to that?
> 
> 
> Since we already store user's status info in mod_last, additional
> storage of *full* XML stanzas looks like an overhead.

So the server has what it needs -- it just needs to pull the answer out
of a different table if the user is offline.

Peter


More information about the ejabberd mailing list