[Telepathy] [Bug 18058] no good way to clean up lost-in-space connections you' d like to recreate

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 14 09:50:42 PDT 2008


--- Comment #1 from Will Thompson <will.thompson at collabora.co.uk>  2008-10-14 09:50:42 PST ---
Daf, Sjoerd, Simon and I came to something resembling agreement on this.

Suppose I request a connection with { username: "badger at mushroom.cym",
password: "secret", resource: "snake" }, then forget about it, and request it
again. Currently, the CM will return an error.  Instead, it could return
*another* independent connection with those properties (at a different bus
name/object path).  If the first connection is never Connect()ed, then
everything works as expected.

If two connections with the same properties are used in parallel, one might be
disconnected when the other one Connect()s (on protocols like MSN), or have its
username/resource mangled (with some XMPP servers or IRC), etc. But this is no
different to connecting to the same IM account on multiple devices.

Implementation: always include the address of the TpBaseConnection * (or
equivalent) in Connections' bus names and object paths.  A refinement would be
only to uniquify in the event of a conflict.

(We need to do something similar to this anyway in Idle to fix
https://bugs.freedesktop.org/show_bug.cgi?id=17430 .)

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

More information about the Telepathy mailing list