-
Notifications
You must be signed in to change notification settings - Fork 58
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
Modify handling of dead hosts. #252
Conversation
Codecov Report
@@ Coverage Diff @@
## master #252 +/- ##
==========================================
+ Coverage 81.84% 82.26% +0.41%
==========================================
Files 9 9
Lines 1449 1438 -11
==========================================
- Hits 1186 1183 -3
+ Misses 263 255 -8
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dead hosts part works, but the progress is stuck at 2%. gvmd uses the progress to see when the scan is done, so maybe don't merge yet.
I tried the patch and it accelerates my Host Discovery scan substantially. |
Therefore the host progress is marked as -1
…single host list. This reduce the amount of memory used for storing the dead hosts and the processing time. No messages HOST_START, dead host, HOST_END are sent to the client if the dead hosts are handle in batch. This is the method use by Boreas method in OpenVAS.
…shed() A finished host at this point could be alive or dead. Depending on the host progress it will be set as dead or alive(finished).
Finished hosts are only for progress calculation. Only the host in the exclude host list will not be scanned. When resuming a stopped task, the client should sent in the exclude host list, the list of host to exclude, and the list of finished host, if they must not be scanned again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again only a small change should be done :-)
Also catch TypeError when cast the progress value to float.
…-poetry Replace pipenv with poetry
Depends on PR greenbone/ospd#266
A finished host could be alive or dead, when the classic alive test method is uses.
Depending on the host progress it will be set as dead or alive(finished).
When Boreas is used, do not send log and host details message of dead hosts to the client.
In any case, the dead host are not taken in account for the scan progress calculation