|
|
|
@ -168,7 +168,7 @@ namespace transport
@@ -168,7 +168,7 @@ namespace transport
|
|
|
|
|
m_Work = new boost::asio::io_service::work (*m_Service); |
|
|
|
|
m_PeerCleanupTimer = new boost::asio::deadline_timer (*m_Service); |
|
|
|
|
m_PeerTestTimer = new boost::asio::deadline_timer (*m_Service); |
|
|
|
|
m_UpdateBandwidthTimer = new boost::asio::steady_timer (*m_Service); |
|
|
|
|
m_UpdateBandwidthTimer = new boost::asio::deadline_timer (*m_Service); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool ipv4; i2p::config::GetOption("ipv4", ipv4); |
|
|
|
@ -306,7 +306,7 @@ namespace transport
@@ -306,7 +306,7 @@ namespace transport
|
|
|
|
|
m_PeerCleanupTimer->expires_from_now (boost::posix_time::seconds(5 * SESSION_CREATION_TIMEOUT)); |
|
|
|
|
m_PeerCleanupTimer->async_wait (std::bind (&Transports::HandlePeerCleanupTimer, this, std::placeholders::_1)); |
|
|
|
|
|
|
|
|
|
m_UpdateBandwidthTimer->expires_from_now (std::chrono::seconds(1)); |
|
|
|
|
m_UpdateBandwidthTimer->expires_from_now (boost::posix_time::seconds(1)); |
|
|
|
|
m_UpdateBandwidthTimer->async_wait (std::bind (&Transports::HandleUpdateBandwidthTimer, this, std::placeholders::_1)); |
|
|
|
|
|
|
|
|
|
if (m_IsNAT) |
|
|
|
@ -393,7 +393,7 @@ namespace transport
@@ -393,7 +393,7 @@ namespace transport
|
|
|
|
|
m_LastTransitBandwidth15sUpdateBytes = m_TotalTransitTransmittedBytes; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
m_UpdateBandwidthTimer->expires_from_now (std::chrono::seconds(1)); |
|
|
|
|
m_UpdateBandwidthTimer->expires_from_now (boost::posix_time::seconds(1)); |
|
|
|
|
m_UpdateBandwidthTimer->async_wait (std::bind (&Transports::HandleUpdateBandwidthTimer, this, std::placeholders::_1)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|