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

dos fix per dan - stop returning results after 20ms runtime #475

Merged
merged 1 commit into from
Sep 30, 2016

Conversation

sneak
Copy link
Contributor

@sneak sneak commented Sep 30, 2016

No description provided.

@theoreticalbts
Copy link
Contributor

I'm checking whether excessive iterations in this loop are in fact causing the problem.

@theoreticalbts
Copy link
Contributor

Too many iterations in this loop are in fact the problem, but the above patch is sub-optimal because it makes the behavior non-deterministic -- it depends on the specifics of timing.

@theoreticalbts
Copy link
Contributor

Force-pushed new patch which doesn't depend on timing and logs useful information about failures.

Copy link
Contributor

@bytemaster bytemaster left a comment

Choose a reason for hiding this comment

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

This code is acceptable, but should be updated to allow more filtered items by increasing max_itr_count to a constant of 1000.

@theoreticalbts
Copy link
Contributor

Updated to do 10x as many

@theoreticalbts theoreticalbts merged commit 8d33584 into develop Sep 30, 2016
@mvandeberg mvandeberg deleted the 20160930-dan-dos-hotfix branch December 14, 2016 22:00
On1x pushed a commit to VIZ-Blockchain/viz-cpp-node that referenced this pull request May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants