aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-27 20:46:13 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-27 20:46:13 +0000
commit2845137368226d8b35c8d4e6d455810a61b87764 (patch)
tree2fc3ff7296840427b785aa47d3151f0fb053a09b /src/transport/gnunet-service-transport_neighbours.c
parentb55ae0b50e36537b83a02941caf32a05e3403412 (diff)
downloadgnunet-2845137368226d8b35c8d4e6d455810a61b87764.tar.gz
gnunet-2845137368226d8b35c8d4e6d455810a61b87764.zip
-reduce too high keepalive frequency to more sane levels
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 9fe8b3953..e478090c3 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -60,11 +60,11 @@
60/** 60/**
61 * How often do we send KEEPALIVE messages to each of our neighbours and measure 61 * How often do we send KEEPALIVE messages to each of our neighbours and measure
62 * the latency with this neighbour? 62 * the latency with this neighbour?
63 * (idle timeout is 5 minutes or 300 seconds, so with 30s interval we 63 * (idle timeout is 5 minutes or 300 seconds, so with 100s interval we
64 * send 10 keepalives in each interval, so 10 messages would need to be 64 * send 3 keepalives in each interval, so 3 messages would need to be
65 * lost in a row for a disconnect). 65 * lost in a row for a disconnect).
66 */ 66 */
67#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) 67#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 100)
68 68
69/** 69/**
70 * How long are we willing to wait for a response from ATS before timing out? 70 * How long are we willing to wait for a response from ATS before timing out?