[jdev] last presence confusion
Joe Hildebrand
hildjj at gmail.com
Mon Jan 28 12:53:43 CST 2008
On Jan 25, 2008, at 12:43 PM, Justin Karneges wrote:
> Psi
> considers the initial presence list to be received once 10 seconds
> have
> passed after the roster was received. This is, of course, not very
> accurate,
> and when Peter takes more than 10 seconds to login, probably 1000
> contacts
> trigger sound events. However, maybe there's a better solution to the
> initial presence list problem.
Just use a Nagle-style approach. Start a timer after you get the
roster. Reset it after each presence you receive. Only start doing
notifications once the timer fires.
--
Joe Hildebrand
More information about the JDev
mailing list