Skip to content

Improve zero conf announce reliability.#944

Merged
mbonani merged 2 commits intoMobsya:masterfrom
cor3ntin:add_zeroconf_timer2
Sep 2, 2021
Merged

Improve zero conf announce reliability.#944
mbonani merged 2 commits intoMobsya:masterfrom
cor3ntin:add_zeroconf_timer2

Conversation

@cor3ntin
Copy link
Copy Markdown
Contributor

@cor3ntin cor3ntin commented Sep 1, 2021

  • Make sure the even loop was entered before trying to announce
    the TDM on zeroconf.

  • Make sure the server are accepting connections by the TDM is
    announced on zero conf.

  • Refresh the announce every few seconds in case there
    was some spurious failure.

This changes should make zero conf a bit more reliable and
avoid some of the issues where the launcher doesn't see the
TDM

I have spend a significant amount of time trying to find race conditions, undefined behavior and so forth and I am not seeing anything abnormal.
I have compared aware with other zero conf implementations ( notably the one used by the launcher) and I'm not seeing anything weird.
There was an issue where we could try to announce on zero conf before the client was started if the event loop had not been started yet. I am assuming this was the culprit.

This patch should allow the TDM to announce itself if for some reason (which i was not able to really reproduce), it fails the first time.

This, along with further patches to enable direct connection to local TDM will hopefully reduce the number of issues observed by users

@cor3ntin cor3ntin requested a review from mbonani September 1, 2021 07:21
* Make sure the even loop was entered before trying to announce
the TDM on zeron conf.

* Make sure the server are accepting connections by the TDM is
announced on zero conf.

* Refresh the announce every few seconds in case there
was some spurious failure.

This changes should make zero conf a bit more reliable and
avoid some of the issues where the launcher doesn't see the
TDM
@cor3ntin cor3ntin force-pushed the add_zeroconf_timer2 branch from 5eec273 to 90bca0d Compare September 1, 2021 08:52
@mbonani
Copy link
Copy Markdown
Contributor

mbonani commented Sep 1, 2021

bug of not correct annoncement is still there on my Linux :
image

@mbonani
Copy link
Copy Markdown
Contributor

mbonani commented Sep 1, 2021

#811 is ok so only #871 reapears with this PR

Copy link
Copy Markdown
Contributor

@mbonani mbonani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#811 is ok so only #871 reapears with this PR

@cor3ntin
Copy link
Copy Markdown
Contributor Author

cor3ntin commented Sep 2, 2021

See Mobsya/aware#1 for #871

@mbonani
Copy link
Copy Markdown
Contributor

mbonani commented Sep 2, 2021

#871 is fixed

@mbonani mbonani merged commit d3a9acf into Mobsya:master Sep 2, 2021
@cor3ntin
Copy link
Copy Markdown
Contributor Author

cor3ntin commented Sep 2, 2021

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants