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

Add sanity checks to prevent runaway searches #1137

Merged
merged 2 commits into from
Oct 21, 2023

Conversation

Jaifroid
Copy link
Member

This backports code from kiwix-js-pwa. It is possible to end up with extremely long-running searches that completely block the UI in some rare cases. This PR sets sensible maximum sizes for search looping.

@Jaifroid Jaifroid added the bug-non-critical For bugs that it would be nice to fix rather than critical to fix label Oct 21, 2023
@Jaifroid Jaifroid added this to the v4.0 milestone Oct 21, 2023
@Jaifroid Jaifroid self-assigned this Oct 21, 2023
@Jaifroid Jaifroid merged commit 9ad9949 into main Oct 21, 2023
9 checks passed
@Jaifroid Jaifroid deleted the Add-sanity-checks-to-prevent-runaway-searches branch October 21, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-non-critical For bugs that it would be nice to fix rather than critical to fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant