openthread / ot-br-posix

OpenThread Border Router, a Thread border router for POSIX-based platforms.
https://openthread.io/
BSD 3-Clause "New" or "Revised" License
420 stars 235 forks source link

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

Closed yangsong-cnyn closed 1 day ago

yangsong-cnyn commented 1 week ago

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.

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: