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

Minor cleanups in authority batch code #2422

Merged
merged 1 commit into from
Jun 6, 2022
Merged

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Jun 6, 2022

All changes are minor cleanups, such as comments, style fixes, renaming and etc.
The only functional change is the DoS prevention, which I will highlight with a comment

@lxfind lxfind requested review from gdanezis and lanvidr June 6, 2022 02:13
@@ -395,7 +395,7 @@ where

// We check if we have exceeded the batch boundary for this request.
// This is to protect against server DoS
if *count > 10 * request.length {
if *count > 10 + request.length {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the only functional change

@lxfind lxfind force-pushed the authority-random-cleanups branch from 80caa11 to 62b51d3 Compare June 6, 2022 05:02
Copy link
Collaborator

@gdanezis gdanezis left a comment

Choose a reason for hiding this comment

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

Thanks so much for the cleanup!

@lxfind lxfind force-pushed the authority-random-cleanups branch from 62b51d3 to 7fba095 Compare June 6, 2022 16:10
@lxfind lxfind merged commit d92a8e7 into main Jun 6, 2022
@lxfind lxfind deleted the authority-random-cleanups branch June 6, 2022 16:20
stella3d pushed a commit that referenced this pull request Jun 7, 2022
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.

2 participants