[Bug 23155] Connection: make handles survive until disconnection

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 29 16:36:21 CET 2010


https://bugs.freedesktop.org/show_bug.cgi?id=23155

--- Comment #11 from Sjoerd Simons <sjoerd at luon.net> 2010-11-29 07:36:18 PST ---
(In reply to comment #10)
> (In reply to comment #9)
> > We currently tie the contact attribute lifetime to the contact's handle's
> > lifetime.
>
> Not in any CM I'm familiar with... TpDynamicHandleRepo has qdata on handles,
> but I don't think using it is necessarily wise.

I agree with smcv here, more-over trusting clients to indicate a useful time to
cache attributes in the CM seems bad. E.g. a different client might have
requested several attributes and gone away. In that case the ``main'' client
holding the handle doesn't indicate anything really..

A big part of a CM is smartly caching stuff indeed. Most meta-data about a
contact is reasonably small, but for example avatar data is already not cached
in the CM for a very long time, regardless about whether the handles are held
or not. In the end holding a handle just guarantees stability of your string to
handle normalisation, nothing else.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the telepathy-bugs mailing list