From dcaf41a18e1bd9014d1cf3ca7a7129a1be76e811 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 28 Aug 2013 23:34:55 +0200 Subject: Simplify keepalive sending By using a global keepalive timer, the O(n) keepalive queue purge operation on every send operation is avoided. --- src/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 48a9c8c..1be93b0 100644 --- a/src/config.c +++ b/src/config.c @@ -89,7 +89,8 @@ static void default_config(fastd_config_t *conf) { conf->log_syslog_ident = strdup("fastd"); - conf->keepalive_interval = 20; + conf->keepalive_interval = 10; + conf->keepalive_timeout = 15; conf->peer_stale_time = 90; conf->eth_addr_stale_time = 300; -- cgit v1.2.3