From f93686fed4b3e1f45452dedff0c4f75108a639ac Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 14 Nov 2013 22:30:13 +0100 Subject: count bad requests and increase ignore time after request --- config.def.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index c81672e..e698261 100644 --- a/config.def.h +++ b/config.def.h @@ -49,9 +49,10 @@ /* this is where pacman stores its local copy of db files */ #define SYNCPATH "/var/lib/pacman/sync" -/* This defines when a host is queried again after a bad request - * default is 600 seconds (10 minutes) */ -#define BADTIME 60 * 10 +/* This defines the initial time in seconds after which a host is queried + * again after a bad request. Time is doubled after every subsequent + * request. */ +#define BADTIME 30 #endif /* _CONFIG_H */ -- cgit v1.2.3-54-g00ecf