[jdev] last presence confusion
hildjj at gmail.com
Mon Jan 28 12:53:43 CST 2008
On Jan 25, 2008, at 12:43 PM, Justin Karneges wrote:
> considers the initial presence list to be received once 10 seconds
> passed after the roster was received. This is, of course, not very
> and when Peter takes more than 10 seconds to login, probably 1000
> 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.
More information about the JDev