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

[fix] ResultContainer: use self._lock and self._closed for all properties #3496

Merged
merged 1 commit into from
May 24, 2024

Conversation

dalf
Copy link
Member

@dalf dalf commented May 18, 2024

What does this PR do?

In ResultContainer make sure:

  • the container is not closed for add_unresponsive_engine, add_timing, so the values are not modified when they are displayed
  • the container is closed for get_timings and number_of_results.

Why is this change important?

Avoid random errors.

How to test this PR locally?

I'm not really sure how to test that.

Author's checklist

Related issues

Should close #3474

Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

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

Untested because I don't know how too, but generally the changes seem like they do what they should 👍

@return42 return42 merged commit 75e4b65 into searxng:master May 24, 2024
9 checks passed
@dalf dalf deleted the fix_3474 branch May 24, 2024 14:59
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.

RuntimeError: Set changed size during iteration in webutils.py
3 participants