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: block endless peer stream #5951
feat: block endless peer stream #5951
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it straightforward to include unit tests exercising the two new failure modes?
I thought about it, but it would mean we need to a full malicious server client. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There is a mock DHT RPC implementation that you could set to return duplicates or too many peers and then pass that into the discovery module. Will likely be a fair amount of work. DHT Mock service |
Description
Block endless peer stream from remote peer.
Block duplicate peers.
Motivation and Context
See #5811
Fixes #5811