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

fix(comms): always send disconnect notification to conn manager #6511

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Aug 30, 2024

Description

fix(comms): always send disconnect notification to conn manager
fix(comms): take the connection state into account when determining connectedness for tie-breaking

Motivation and Context

Previously, if Yamux detected that we were disconnected, the connectivity manager Disconnected notification would not be sent. A race condition with disconnects on a connection and the remote disconnecting happen at almost the same time. If the latter happens first, then the notification of the disconnect would not be sent to the connection manager. When a new connection is attempted, the connection manager would think that a previous connection exists.

Ref #6512
Ref #6513

How Has This Been Tested?

Not explicitly tested, difficult to reproduce.

What process can a PR reviewer use to test or verify this change?

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

hansieodendaal
hansieodendaal previously approved these changes Aug 30, 2024
Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

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

utACK

(just the clippy..)

@ghpbot-tari-project ghpbot-tari-project added the P-acks_required Process - Requires more ACKs or utACKs label Aug 30, 2024
@sdbondi sdbondi force-pushed the comms-fix-disconnect-state branch from 51f3057 to b07794e Compare August 30, 2024 12:06
@ghpbot-tari-project ghpbot-tari-project added the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Aug 30, 2024
Copy link

Test Results (CI)

    3 files    129 suites   38m 7s ⏱️
1 306 tests 1 306 ✅ 0 💤 0 ❌
3 904 runs  3 904 ✅ 0 💤 0 ❌

Results for commit b07794e.

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Aug 30, 2024
Copy link

Test Results (Integration tests)

 2 files  + 2  11 suites  +11   35m 31s ⏱️ + 35m 31s
36 tests +36  34 ✅ +34  0 💤 ±0  2 ❌ +2 
39 runs  +39  36 ✅ +36  0 💤 ±0  3 ❌ +3 

For more details on these failures, see this check.

Results for commit b07794e. ± Comparison against base commit 169572a.

@SWvheerden SWvheerden merged commit 26e85a8 into tari-project:development Aug 30, 2024
17 of 18 checks passed
@sdbondi sdbondi deleted the comms-fix-disconnect-state branch September 2, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants