From 87fb1e4119d6762f0d082bccc420508fa7510dbc Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 29 Dec 2014 22:15:16 -0500 Subject: Adjusted onion timeouts. --- toxcore/onion_client.c | 2 +- toxcore/onion_client.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index 2e39762f..76d8bac0 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c @@ -1190,7 +1190,7 @@ static void populate_path_nodes(Onion_Client *onion_c) #define ANNOUNCE_FRIEND (ONION_NODE_PING_INTERVAL * 6) #define ANNOUNCE_FRIEND_BEGINNING 3 -#define FRIEND_ONION_NODE_TIMEOUT (ONION_NODE_TIMEOUT * 4) +#define FRIEND_ONION_NODE_TIMEOUT (ONION_NODE_TIMEOUT * 6) #define RUN_COUNT_FRIEND_ANNOUNCE_BEGINNING 17 diff --git a/toxcore/onion_client.h b/toxcore/onion_client.h index 7119a8bf..9a102891 100644 --- a/toxcore/onion_client.h +++ b/toxcore/onion_client.h @@ -30,7 +30,7 @@ #define MAX_ONION_CLIENTS 8 #define ONION_NODE_PING_INTERVAL 20 -#define ONION_NODE_TIMEOUT (ONION_NODE_PING_INTERVAL * 4) +#define ONION_NODE_TIMEOUT (ONION_NODE_PING_INTERVAL * 3) /* The interval in seconds at which to tell our friends where we are */ #define ONION_FAKEID_INTERVAL 30 -- cgit v1.2.3