aboutsummaryrefslogtreecommitdiff
path: root/src/topology
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-03-25 12:48:09 +0000
committerChristian Grothoff <christian@grothoff.org>2012-03-25 12:48:09 +0000
commitd7a5c656d467597fcb6a7fb6daa84c3c5e7bae31 (patch)
tree588ae9d4d048e2e3f25ec39f7baff7c4e18d3ec2 /src/topology
parent7ad847a982ccfb46b3f785c17185b53cbceb0c63 (diff)
downloadgnunet-d7a5c656d467597fcb6a7fb6daa84c3c5e7bae31.tar.gz
gnunet-d7a5c656d467597fcb6a7fb6daa84c3c5e7bae31.zip
-fixing advertising constants, improving docu
Diffstat (limited to 'src/topology')
-rw-r--r--src/topology/gnunet-daemon-topology.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
index bab91f71a..d09de78ed 100644
--- a/src/topology/gnunet-daemon-topology.c
+++ b/src/topology/gnunet-daemon-topology.c
@@ -35,25 +35,29 @@
35 35
36/** 36/**
37 * For how long do we blacklist a peer after a failed connection 37 * For how long do we blacklist a peer after a failed connection
38 * attempt? 38 * attempt? This is the baseline factor which is then multiplied by
39 * two to the power of the number of failed attempts.
39 */ 40 */
40#define GREYLIST_AFTER_ATTEMPT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 15) 41#define GREYLIST_AFTER_ATTEMPT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 1)
41 42
42/** 43/**
43 * For how long do we blacklist a friend after a failed connection 44 * For how long do we blacklist a friend after a failed connection
44 * attempt? 45 * attempt? This is the baseline factor which is then multiplied by
46 * two to the power of the number of failed attempts.
45 */ 47 */
46#define GREYLIST_AFTER_ATTEMPT_FRIEND GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 2) 48#define GREYLIST_AFTER_ATTEMPT_FRIEND GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 2)
47 49
48/** 50/**
49 * For how long do we blacklist anyone under any cirumstances at least after a failed connection 51 * For how long do we blacklist anyone under any cirumstances at least after a failed connection
50 * attempt? 52 * attempt? This is the absolute minimum, regardless of what the calculation based on
53 * exponential backoff returns.
51 */ 54 */
52#define GREYLIST_AFTER_ATTEMPT_MIN GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 15) 55#define GREYLIST_AFTER_ATTEMPT_MIN GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5)
53 56
54/** 57/**
55 * For how long do we blacklist anyone under any cirumstances at most after a failed connection 58 * For how long do we blacklist anyone under any cirumstances at most after a failed connection
56 * attempt? 59 * attempt? This is the absolute maximum, regardless of what the calculation based on
60 * exponential back-off returns.
57 */ 61 */
58#define GREYLIST_AFTER_ATTEMPT_MAX GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 1) 62#define GREYLIST_AFTER_ATTEMPT_MAX GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 1)
59 63