aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-11-14 22:30:13 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-11-14 22:30:13 +0100
commitf93686fed4b3e1f45452dedff0c4f75108a639ac (patch)
tree76b485e991cacc8f02cc2729a9e18a7d3db37e9a /config.def.h
parent2363f05e54da345d21e4e784da61e88f650a4eed (diff)
downloadpacredir-f93686fed4b3e1f45452dedff0c4f75108a639ac.tar.gz
pacredir-f93686fed4b3e1f45452dedff0c4f75108a639ac.tar.zst
count bad requests and increase ignore time after request
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h7
1 files changed, 4 insertions, 3 deletions
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 */