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

feat: close rpc connections when not in use #6646

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

hansieodendaal
Copy link
Contributor

@hansieodendaal hansieodendaal commented Oct 22, 2024

Description

Added the ability to close RPC connections for a given peer:

  • Client-side:
    • When dialling a peer (in establishing a new connection), a drop old connections switch can be included in the client's dial request so that only one RPC client connection will ever be active.

Motivation and Context

Wallets keep on hitting their maximum allowed RPC sessions in the server.

How Has This Been Tested?

  • Added new unit tests.
  • System-level testing [TBD].

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

Code review

Breaking Changes

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

@hansieodendaal hansieodendaal requested a review from a team as a code owner October 22, 2024 13:11
@hansieodendaal hansieodendaal marked this pull request as draft October 22, 2024 13:11
@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Oct 22, 2024
Copy link

github-actions bot commented Oct 22, 2024

Test Results (CI)

    2 files     86 suites   25m 27s ⏱️
1 345 tests 1 345 ✅ 0 💤 0 ❌
2 682 runs  2 682 ✅ 0 💤 0 ❌

Results for commit 3730921.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 22, 2024

Test Results (Integration tests)

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 3730921.

♻️ This comment has been updated with latest results.

@hansieodendaal hansieodendaal force-pushed the ho_rpc_sessions branch 2 times, most recently from 3271d0a to 22f13c5 Compare October 23, 2024 07:22
@hansieodendaal hansieodendaal marked this pull request as ready for review October 23, 2024 07:26
@hansieodendaal hansieodendaal marked this pull request as draft October 23, 2024 07:36
Added the ability to close RPC connections for a given peer:
- When dialing a peer (in establishing a new connection), a drop old connections
  switch can be included in the dial request from the client so that only only one
  RPC client connection will ever be active.
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 P-reviews_required Process - Requires a review from a lead maintainer to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants