From 2cd056cfb370cde564a180a91189f1d0aff69930 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 28 Jun 2016 14:43:55 -0400 Subject: [PATCH] try banning non responsive routers --- Transports.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Transports.cpp b/Transports.cpp index 9988acf1..b4130dfd 100644 --- a/Transports.cpp +++ b/Transports.cpp @@ -615,6 +615,12 @@ namespace transport if (it->second.sessions.empty () && ts > it->second.creationTime + SESSION_CREATION_TIMEOUT) { LogPrint (eLogWarning, "Transports: Session to peer ", it->first.ToBase64 (), " has not been created in ", SESSION_CREATION_TIMEOUT, " seconds"); + auto profile = i2p::data::GetRouterProfile(it->first); + if (profile) + { + profile->TunnelNonReplied(); + profile->Save(); + } std::unique_lock l(m_PeersMutex); it = m_Peers.erase (it); }