-reduce too high keepalive frequency to more sane levels
authorChristian Grothoff <christian@grothoff.org>
Sun, 27 May 2012 20:46:13 +0000 (20:46 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 27 May 2012 20:46:13 +0000 (20:46 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 9fe8b39530e50e0971206fc54beda336827cc031..e478090c3f7730758385d8b32e721c57f9959732 100644 (file)
 /**
  * How often do we send KEEPALIVE messages to each of our neighbours and measure
  * the latency with this neighbour?
- * (idle timeout is 5 minutes or 300 seconds, so with 30s interval we
- * send 10 keepalives in each interval, so 10 messages would need to be
+ * (idle timeout is 5 minutes or 300 seconds, so with 100s interval we
+ * send 3 keepalives in each interval, so 3 messages would need to be
  * lost in a row for a disconnect).
  */
-#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
+#define KEEPALIVE_FREQUENCY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 100)
 
 /**
  * How long are we willing to wait for a response from ATS before timing out?