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: initialize global_max_hosts and global_max_checks from config file #1210

Merged
merged 1 commit into from
Oct 18, 2022

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Oct 17, 2022

What:
Fix: initialize global_max_hosts and global_max_checks from config file

Jira: SC-696

Why:
the settings were not initialized and the defaults (hardcoded) where set instead. Therefore if the client sent a max_checks and max_hosts grather than defaults, the setting was not applied, since the settings from the configuration file were not taken.

How:
Hardcoded defaults are max_hosts = 15 and max_checks = 10.

  • Set in the configuration file max_hosts = 30 and max_checks = 15.
  • set in the task configuration max_hosts = 25 and max_checks = 13. (greather than defaults and lower than in the config file)
  • run the scan and check the logs.

Repeat the test with and without the patch.

Checklist:

  • Tests
  • PR merge commit message adjusted

@jjnicola jjnicola marked this pull request as ready for review October 17, 2022 09:42
@jjnicola jjnicola requested a review from a team as a code owner October 17, 2022 09:42
@jjnicola jjnicola enabled auto-merge (squash) October 17, 2022 09:42
@jjnicola jjnicola merged commit 2d53694 into greenbone:main Oct 18, 2022
mergify bot pushed a commit that referenced this pull request Oct 18, 2022
ArnoStiefvater pushed a commit that referenced this pull request Oct 18, 2022
…le (#1210) (#1212)

(cherry picked from commit 2d53694)

Co-authored-by: Juan José Nicola <juan.nicola@greenbone.net>
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