[Bug 28366] Add DBusTube interface support

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Nov 11 00:50:20 CET 2011


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

--- Comment #22 from Dario Freddi <drf54321 at gmail.com> 2011-11-10 15:50:20 PST ---
(In reply to comment #21)
> (In reply to comment #19)
> > The lcov report has been attached, and it shows test
> > coverage is almost 100% (and covers all of the functions we're interested in).
> 
> Well, AFAICS it ranges from 73.3% for OutgoingDBusTubeChannel to 90.6% for
> PendingDBusTubeConnection.

Tests have been updated to be all >91%. I also took the chance of greening out
TubeChannel, which is >90% as well now.

> Something even more important to test would be the rather non-trivial contact
> build code for the DBusNames. That's currently not tested in DTC.

This is now tested, and a bug in how the busNamesChanged signal was handled has
been fixed.

> 
> Btw, on the subject of credential checking - did you verify that it makes sense
> for the API user to decide whether the SCM_CREDS message should be required?
> The potential forces which might make this nonsense are:
> 1) dbus unix socket transport might always require the message on platforms
> where it is supported(!!) - or is it gabble which gets to decide whether it
> requires it or not?
> 2) in turn, many (all?) transport libraries in the CONNECTING side might offer
> no way to force or prevent passing it - so then the API user's decision would
> become "OK I'll find out what my dbus transport library does in its internals,
> for the platforms I want to support". It's distinctly better if WE figure this
> out in behalf of the users, being in a much better position expertise wise to
> do that.

TBH, I'm not really getting this part. DBus can indeed choose whether or not to
require credentials, and the default behavior is yes. Gabble indeed offers the
possibility of choosing. Changing the default to true seems a good pick to me -
but I'm not sure if removing the choice makes sense. Or I misunderstood your
point?

> 
> Here's a few things to consider for now. I'll post a full review of the current
> state of the APIs and implementation tomorrow.

Thank you :)

-- 
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