Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pd] daemon service: reconnect to dbus on dbus reset #2605

Merged
merged 8 commits into from
Nov 21, 2024

Conversation

yangsong-cnyn
Copy link
Contributor

@yangsong-cnyn yangsong-cnyn commented Nov 15, 2024

This commit addresses a potential issue where the pd daemon loses its dbus connection when original dbus is reset. The daemon now monitors the io.openthread.BorderRouter.wpan0 dbus name and reconnects if the name owner changes, indicating a likely otbr-agent reload. This ensures the daemon continues to function correctly after dbus is reset by otbr-agent.

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.91%. Comparing base (2b41187) to head (bc66940).
Report is 880 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2605      +/-   ##
==========================================
- Coverage   55.77%   45.91%   -9.87%     
==========================================
  Files          87      106      +19     
  Lines        6890    12624    +5734     
  Branches        0      915     +915     
==========================================
+ Hits         3843     5796    +1953     
- Misses       3047     6511    +3464     
- Partials        0      317     +317     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@yangsong-cnyn yangsong-cnyn changed the title [PD] pd daemon service: reconnect to dbus after otbr-agent on otbr-agent reload [PD] pd daemon service: reconnect to dbus on otbr-agent reload Nov 18, 2024
@yangsong-cnyn yangsong-cnyn changed the title [PD] pd daemon service: reconnect to dbus on otbr-agent reload [PD] pd daemon service: reconnect to dbus on dbus reset Nov 20, 2024
@yangsong-cnyn yangsong-cnyn self-assigned this Nov 20, 2024
Copy link
Contributor

@superwhd superwhd left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@jwhui jwhui changed the title [PD] pd daemon service: reconnect to dbus on dbus reset [pd] daemon service: reconnect to dbus on dbus reset Nov 21, 2024
@jwhui jwhui merged commit 7d32700 into openthread:main Nov 21, 2024
32 checks passed
@yangsong-cnyn yangsong-cnyn deleted the pd_daemon branch November 22, 2024 05:02
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.

3 participants