From c30103324efcc7d7203039ba1c7a57f706a663db Mon Sep 17 00:00:00 2001 From: Eyal Shapira Date: Sat, 21 Jul 2012 00:55:20 +0300 Subject: P2P: Decrease peer expiry time (BRCM) Changed from 5 min to 30 secs probably in order to avoid stale peers appearing in the Android UI. Signed-off-by: Eyal Shapira --- src/p2p/p2p.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index f55fa6d..5dc874f 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -42,7 +42,11 @@ static void p2p_scan_timeout(void *eloop_ctx, void *timeout_ctx); * P2P_PEER_EXPIRATION_AGE - Number of seconds after which inactive peer * entries will be removed */ +#ifdef ANDROID_P2P +#define P2P_PEER_EXPIRATION_AGE 30 +#else #define P2P_PEER_EXPIRATION_AGE 300 +#endif #define P2P_PEER_EXPIRATION_INTERVAL (P2P_PEER_EXPIRATION_AGE / 2) -- cgit v1.1