[or-cvs] discourage people from setting their dirfetchpostperiod mor...

Roger Dingledine arma at seul.org
Thu Sep 23 19:23:35 UTC 2004


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) {



More information about the tor-commits mailing list