diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-28 23:34:55 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-29 00:45:13 +0200 |
commit | dcaf41a18e1bd9014d1cf3ca7a7129a1be76e811 (patch) | |
tree | 024ee42fb7f76ed8e2fb4c1a5ec66031cdcc26b6 /src/config.c | |
parent | 2343f5329c0d5e7d8073810e56577d944b7c518e (diff) | |
download | fastd-dcaf41a18e1bd9014d1cf3ca7a7129a1be76e811.tar fastd-dcaf41a18e1bd9014d1cf3ca7a7129a1be76e811.zip |
Simplify keepalive sending
By using a global keepalive timer, the O(n) keepalive queue purge operation on
every send operation is avoided.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |