[jdev] last presence confusion
Peter Saint-Andre
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:
>> 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.
Sure. That's Smart[tm].
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.jabber.org/jdev/attachments/20080128/e9754ae9/attachment-0002.bin>
More information about the JDev
mailing list