gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r20754 - gnunet/src/topology


From: gnunet
Subject: [GNUnet-SVN] r20754 - gnunet/src/topology
Date: Sun, 25 Mar 2012 14:48:09 +0200

Author: grothoff
Date: 2012-03-25 14:48:09 +0200 (Sun, 25 Mar 2012)
New Revision: 20754

Modified:
   gnunet/src/topology/gnunet-daemon-topology.c
Log:
-fixing advertising constants, improving docu

Modified: gnunet/src/topology/gnunet-daemon-topology.c
===================================================================
--- gnunet/src/topology/gnunet-daemon-topology.c        2012-03-25 12:44:42 UTC 
(rev 20753)
+++ gnunet/src/topology/gnunet-daemon-topology.c        2012-03-25 12:48:09 UTC 
(rev 20754)
@@ -35,25 +35,29 @@
 
 /**
  * For how long do we blacklist a peer after a failed connection
- * attempt?
+ * attempt?  This is the baseline factor which is then multiplied by
+ * two to the power of the number of failed attempts.
  */
-#define GREYLIST_AFTER_ATTEMPT GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_MINUTES, 15)
+#define GREYLIST_AFTER_ATTEMPT GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_MINUTES, 1)
 
 /**
  * For how long do we blacklist a friend after a failed connection
- * attempt?
+ * attempt?  This is the baseline factor which is then multiplied by
+ * two to the power of the number of failed attempts.
  */
-#define GREYLIST_AFTER_ATTEMPT_FRIEND GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_MINUTES, 2)
+#define GREYLIST_AFTER_ATTEMPT_FRIEND GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_SECONDS, 2)
 
 /**
  * For how long do we blacklist anyone under any cirumstances at least after a 
failed connection
- * attempt?
+ * attempt?  This is the absolute minimum, regardless of what the calculation 
based on
+ * exponential backoff returns.
  */
-#define GREYLIST_AFTER_ATTEMPT_MIN GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_SECONDS, 15)
+#define GREYLIST_AFTER_ATTEMPT_MIN GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_SECONDS, 5)
 
 /**
  * For how long do we blacklist anyone under any cirumstances at most after a 
failed connection
- * attempt?
+ * attempt?  This is the absolute maximum, regardless of what the calculation 
based on 
+ * exponential back-off returns.
  */
 #define GREYLIST_AFTER_ATTEMPT_MAX GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_HOURS, 1)
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]