Bug 101646

Summary: should we transmit failed state to tp instead of exhausted candidates ?
Product: Telepathy Reporter: Fabrice Bellet <fabrice>
Component: tp-farstreamAssignee: Olivier CrĂȘte <olivier.crete>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: git master   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Fabrice Bellet 2017-06-29 11:44:08 UTC
I'm not sure of this case, but the code handling the conversion from FS_STREAM_STATE_* to TP_STREAM_ENDPOINT_STATE_* looks a bit strange to me in cb_fs_component_state_changed():

>  switch (fsstate)
>  {
>    default:
>      g_warning ("Unknown Farstream state, returning ExhaustedCandidates");
>      /* fall through */
>    case FS_STREAM_STATE_FAILED:
>      state = TP_STREAM_ENDPOINT_STATE_EXHAUSTED_CANDIDATES;
>      break;

Why is state EXHAUSTED_CANDIDATES returned in case of failure, instead of TP_STREAM_ENDPOINT_STATE_FAILED ?
Comment 1 Olivier CrĂȘte 2017-06-29 13:30:56 UTC
I think this links to the previous patch. I think exhausted candidate means we've failed, but we could still succeed if more candidates were provided. The failed one means a hard failure.
Comment 2 GitLab Migration User 2019-12-03 19:16:55 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-farstream/issues/8.

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.