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): ensure that inbound messaging terminates on disconnect #6653

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Oct 29, 2024

Description

fix(comms): ensure that inbound messaging terminates on disconnect

Motivation and Context

Ensure that the inbound messaging worker terminates when the peer connection is disconnected.
This PR ensures this by using the PeerConnection::on_disconnect future. It has not been confirmed
that the inbound worker would not terminate before however this PR will guarantee it.

How Has This Been Tested?

Updated unit tests.

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

Copy link

Test Results (CI)

    3 files    129 suites   39m 28s ⏱️
1 344 tests 1 344 ✅ 0 💤 0 ❌
4 030 runs  4 030 ✅ 0 💤 0 ❌

Results for commit 6629a26.

Copy link

Test Results (Integration tests)

 2 files  + 2  11 suites  +11   23m 25s ⏱️ + 23m 25s
36 tests +36  35 ✅ +35  0 💤 ±0  1 ❌ +1 
37 runs  +37  36 ✅ +36  0 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 6629a26. ± Comparison against base commit f802743.

@SWvheerden SWvheerden merged commit 47b4877 into tari-project:development Oct 29, 2024
16 of 17 checks passed
@sdbondi sdbondi deleted the comms-messaging-ensure-terminate branch October 29, 2024 08:25
@hansieodendaal
Copy link
Contributor

Nice one

sdbondi added a commit to sdbondi/tari that referenced this pull request Oct 30, 2024
* development:
  fix(comms): ensure that inbound messaging terminates on disconnect (tari-project#6653)
  chore(deps): bump azure/trusted-signing-action from 0.4.0 to 0.5.0 (tari-project#6652)
  chore: new release esme v1.8.0-pre.0 (tari-project#6651)
  feat: close rpc connections when not in use - without close on dial requests (tari-project#6649)
  Update README.md with correct discord link (tari-project#6650)
  chore: new release esmeralda (tari-project#6647)
  chore: release new esmeralda v1.7.0-pre.3 (tari-project#6642)
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