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] Clear seen_outbound_block_requests on peer disconnect #3330

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

ljedrz
Copy link
Collaborator

@ljedrz ljedrz commented Jun 25, 2024

This PR clears a peer's seen_outbound_block_requests when it gets disconnected.

There may be other cache collections (in Router) that require this sort of adjustment, and this depends on whether they too need to be invalidated once the peer is disconnected. Once this PR is merged, this will only require additional lines to be added to Cache::clear_peer_entries.

Fixes #3326.

@ljedrz ljedrz requested a review from niklaslong June 25, 2024 09:33
Copy link
Contributor

@raychu86 raychu86 left a comment

Choose a reason for hiding this comment

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

LGTM as long as CI passes.

@raychu86
Copy link
Contributor

@ljedrz @niklaslong Can you run CI on this?

@raychu86 raychu86 changed the title Clear seen_outbound_block_requests on peer disconnect [Fix] Clear seen_outbound_block_requests on peer disconnect Jul 17, 2024
@ljedrz
Copy link
Collaborator Author

ljedrz commented Jul 18, 2024

CI run link

@zosorock zosorock merged commit 411940b into AleoNet:staging Oct 22, 2024
20 of 24 checks passed
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.

[Bug] Memory leak in seen_outbound_block_requests
5 participants