Consider the target down after 30 requests timed out requests instead of 10 - Fixes 790
This commit is contained in:
@@ -113,7 +113,7 @@ end
|
|||||||
|
|
||||||
# Hook to check if the target if down during the scan
|
# Hook to check if the target if down during the scan
|
||||||
# And have the number of requests performed to display at the end of the scan
|
# And have the number of requests performed to display at the end of the scan
|
||||||
# The target is considered down after 10 requests with status = 0
|
# The target is considered down after 30 requests with status = 0
|
||||||
down = 0
|
down = 0
|
||||||
@total_requests_done = 0
|
@total_requests_done = 0
|
||||||
|
|
||||||
@@ -121,5 +121,5 @@ Typhoeus.on_complete do |response|
|
|||||||
down += 1 if response.code == 0
|
down += 1 if response.code == 0
|
||||||
@total_requests_done += 1
|
@total_requests_done += 1
|
||||||
|
|
||||||
fail 'The target seems to be down' if down >= 10
|
fail 'The target seems to be down' if down >= 30
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user