[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] discourage people from setting their dirfetchpostperiod mor...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] discourage people from setting their dirfetchpostperiod mor...
- From: arma@seul.org (Roger Dingledine)
- Date: Thu, 23 Sep 2004 15:23:35 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Thu, 23 Sep 2004 15:24:02 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
config.c
Log Message:
discourage people from setting their dirfetchpostperiod more often
than once per minute
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- config.c 10 Sep 2004 21:40:28 -0000 1.157
+++ config.c 23 Sep 2004 19:23:32 -0000 1.158
@@ -841,8 +841,9 @@
result = -1;
}
- if(options->DirFetchPostPeriod < 1) {
- log(LOG_WARN,"DirFetchPostPeriod option must be positive.");
+#define MIN_DIRFETCHPOSTPERIOD 60
+ if(options->DirFetchPostPeriod < MIN_DIRFETCHPOSTPERIOD) {
+ log(LOG_WARN,"DirFetchPostPeriod option must be at least %d.", MIN_DIRFETCHPOSTPERIOD);
result = -1;
}
if(options->DirFetchPostPeriod > MIN_ONION_KEY_LIFETIME/2) {