We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 386a144 commit 27cf8caCopy full SHA for 27cf8ca
intelmq/bin/intelmqctl.py
@@ -567,12 +567,14 @@ def botnet_stop(self, group=None):
567
# only aliasing the list to ease reading the following
568
stopped_but_still_running_bots = bots
569
570
- # parameters:
+ retries = getattr(self._parameters, 'stop_retry_limit', 5)
571
+
572
+ # parameters (default):
573
# - sleep 0.75 s with an increment of 0.1
574
# - at most 5 tries
575
# => sleep-ing at most 4.75 seconds
576
sleep_time = 0.75 # in seconds
- for _ in range(5):
577
+ for _ in range(retries):
578
# give the bots some time to terminate
579
time.sleep(sleep_time)
580
# update the botnet_status
0 commit comments