[jdev] last presence confusion
stpeter at stpeter.im
Mon Jan 28 12:57:48 CST 2008
Joe Hildebrand wrote:
> On Jan 25, 2008, at 12:43 PM, Justin Karneges wrote:
>> considers the initial presence list to be received once 10 seconds have
>> 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.
Sure. That's Smart[tm].
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
More information about the JDev