Compare commits

...

3 Commits

Author SHA1 Message Date
Dimitris Apostolou
096ec2c888 Merge 75e8e04614 into e8f5efd156 2025-02-01 18:46:14 +02:00
orignal
e8f5efd156 peers cleanup time variance 2025-02-01 09:42:44 -05:00
Dimitris Apostolou
75e8e04614 fix typo 2025-01-30 12:37:09 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1042,7 +1042,7 @@ namespace transport
// if still testing or unknown, repeat peer test
if (ipv4Testing || ipv6Testing)
PeerTest (ipv4Testing, ipv6Testing);
m_PeerCleanupTimer->expires_from_now (boost::posix_time::seconds(3 * SESSION_CREATION_TIMEOUT));
m_PeerCleanupTimer->expires_from_now (boost::posix_time::seconds(2 * SESSION_CREATION_TIMEOUT + m_Rng() % SESSION_CREATION_TIMEOUT));
m_PeerCleanupTimer->async_wait (std::bind (&Transports::HandlePeerCleanupTimer, this, std::placeholders::_1));
}
}

View File

@@ -49,7 +49,7 @@ namespace tunnel
void HandleDecryptedTunnelDataMsg (std::shared_ptr<I2NPMessage> msg);
void FlushI2NPMsgs ();
const i2p::data::IdentHash * GetCurrentHash () const; // return null if not avaiable
const i2p::data::IdentHash * GetCurrentHash () const; // return null if not available
const std::unique_ptr<TunnelTransportSender>& GetSender () const { return m_Sender; };
private: