From 9404a4d0690ceea6140eeced1656c92c0ad61f99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com>
Date: Fri, 21 Oct 2016 20:12:21 -0400
Subject: [PATCH] dht: make reannounce margin bigger, safer

Reannouncing margin going from 5 seconds to 10 seconds.
---
 include/opendht/dht.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/opendht/dht.h b/include/opendht/dht.h
index 60fcff27..08e9cd8d 100644
--- a/include/opendht/dht.h
+++ b/include/opendht/dht.h
@@ -331,7 +331,7 @@ private:
     /* Timeout for listen */
     static constexpr std::chrono::seconds LISTEN_EXPIRE_TIME {30};
 
-    static constexpr std::chrono::seconds REANNOUNCE_MARGIN {5};
+    static constexpr std::chrono::seconds REANNOUNCE_MARGIN {10};
 
     static constexpr size_t TOKEN_SIZE {64};
 
-- 
GitLab