Consider the target down after 30 requests timed out requests instead of 10 - Fixes 790

This commit is contained in:
erwanlr
2015-04-01 09:25:17 +01:00
parent 48cd0602d8
commit e42bf7fd7c

View File

@@ -113,7 +113,7 @@ end
# 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
# The target is considered down after 10 requests with status = 0
# The target is considered down after 30 requests with status = 0
down = 0
@total_requests_done = 0
@@ -121,5 +121,5 @@ Typhoeus.on_complete do |response|
down += 1 if response.code == 0
@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