Bug 53166 - flawed representation of contact caps (can't deal with clients going away?)
Summary: flawed representation of contact caps (can't deal with clients going away?)
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: salut (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-06 15:26 UTC by Simon McVittie
Modified: 2019-12-03 20:16 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Simon McVittie 2012-08-06 15:26:37 UTC
Gabble represents contact caps like this:

* Connection maintains a table { client name => caps set }
* When a new client appears, every channel manager is asked to
  "represent" that client, building up a list of caps that is the
  union of each channel manager's representation
* The caps emitted onto the network are the union of all clients'
  capabilities
* When a client goes away, it is removed from the table and the
  union is re-calculated

Salut, by contrast, does this:

* When a new client appears, every channel manager is asked to
  "represent" that client, storing the representation internally;
  it then emits the union of every client it cares about, including
  ones it isn't currently trying to represent

I'm not sure whether this deals correctly with clients going away.

It certainly requires more subtlety from channel managers than they ought to have (see Ytstenut's plugin-base/caps-manager.c, and a Yts bug I'm about to file).

Fixing this will break out-of-tree channel managers. The one in ytstenut-plugins is the only known example.
Comment 1 GitLab Migration User 2019-12-03 20:16:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-salut/issues/40.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.