[Bug 101542] New: set controlling to a value reflecting who initiated the connection

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 21 18:05:18 UTC 2017


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

            Bug ID: 101542
           Summary: set controlling to a value reflecting who initiated
                    the connection
           Product: Telepathy
           Version: git master
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: tp-farstream
          Assignee: olivier.crete at ocrete.ca
          Reporter: fabrice at bellet.info
        QA Contact: telepathy-bugs at lists.freedesktop.org

Hi!

In the current implementation of tp-farstream, in
got_stream_media_properties(), both peers using this same code will always be
created with a controlling value of zero, which is suboptimal because this will
cause some unnecessary role conflict stun requests before converging to a
distinct role for both peers with the nice transmitter.

Would it be possible to make a guess based for example on the stream flow
status, to find which peer initiated the connection, and set controlling=true
for it?

For example testing "(self->receiving_state ==
TP_STREAM_FLOW_STATE_PENDING_START) " ? The difficulty (or not a difficulty
maybe) is that the second stream will use the nice agent created for the first
stream, so only the state of the first stream is really needed to establish the
controlling/controlled role of the nice agent.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the telepathy-bugs mailing list