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 handling of goodbye messages for limited peers #13785

Merged
merged 2 commits into from Mar 22, 2024

Conversation

kasey
Copy link
Contributor

@kasey kasey commented Mar 21, 2024

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

I've noticed these rate limit errors on the goodbye topic:
[2024-03-20 18:11:17] DEBUG sync: Could not handle p2p RPC (ptr) error=rate limited peer=16Uiu2HAm34cymQmtLYvFQJd5jzW1fYE4xcUPyW4LRmBxGhLfsR4U topic=/eth2/beacon_chain/req/goodbye/1/ssz_snappy

I'm assuming what's happening here is that we rate limit a peer, and they choose to disconnect with us as a result, at which point they can send us a (optional) goodbye message, and we then raise this error saying "you can't call my goodbye rpc, you are rate limited". The problem is this prevents us from correctly handling the disconnect as implemented in the goodbye rpc handler. Since we're about to disconnect the peer with a reconnect backoff anyway, we should allow this to proceed and just log the faintly interesting fact that the peer is already rate limited.

@kasey kasey requested a review from a team as a code owner March 21, 2024 15:07
@kasey kasey requested a review from nalepae March 21, 2024 15:07
@kasey kasey enabled auto-merge March 21, 2024 18:15
@kasey kasey added this pull request to the merge queue Mar 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 21, 2024
@kasey kasey added this pull request to the merge queue Mar 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 21, 2024
@prestonvanloon prestonvanloon added this pull request to the merge queue Mar 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 22, 2024
@prestonvanloon prestonvanloon added this pull request to the merge queue Mar 22, 2024
Merged via the queue into develop with commit c05e39a Mar 22, 2024
17 checks passed
@prestonvanloon prestonvanloon deleted the allow-goodbye-when-limited branch March 22, 2024 13:27
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.

None yet

2 participants