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

Drop gossipsub stale messages when polling ConnectionHandler. #5175

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

jxs
Copy link
Member

@jxs jxs commented Feb 2, 2024

Consider the following scenario:

ConnectionHandler is slow transfering a message, therefore messages accumulate. These messages timeout may elapse and fill the queue, but ConnectionHandler will only discard them when reading the next message to send from the queue.
This PR helps ease that situation by reading the next message when ConnectionHandler is polled and discarding it if its timeout has elapsed.

to be able to Peek next message without dropping it
@jxs
Copy link
Member Author

jxs commented Feb 14, 2024

@mergify queue

Copy link

mergify bot commented Feb 14, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 256d904

mergify bot added a commit that referenced this pull request Feb 14, 2024
@michaelsproul michaelsproul added the ready-for-merge This PR is ready to merge. label Feb 15, 2024
@mergify mergify bot merged commit 256d904 into sigp:unstable Feb 15, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge. v5.0.0 Q1 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants