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

Reduce timout for alive tests #400

Merged
merged 3 commits into from
Sep 4, 2020

Conversation

ArnoStiefvater
Copy link
Member

@ArnoStiefvater ArnoStiefvater commented Sep 3, 2020

What:

Reduces time of alive test if target list is small.

Why:

To reduce the time of tests.

How:

Read the logs when doing a scan of 1 host. Previously scan took about 9 second, now it takes about 5 seconds.

Checklist:

Previously the ping timeout was 5 seconds.
Now the timeout is set to 1 second. We already
have some wait of 0.5 secs in the pinging function.
So in total we wait 1.5 seconds for replies now.
This should be enough for most use cases.
If already all hosts in the target list were
identified as alive we do not need to wait for
ping replies anymore.
@jjnicola jjnicola merged commit 8a79bd5 into greenbone:gvm-libs-20.08 Sep 4, 2020
@ArnoStiefvater ArnoStiefvater deleted the reduce-wait branch September 7, 2020 06:51
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