implement streaming limiting (initial)

This commit is contained in:
Jeff Becker 2016-07-28 11:16:29 -04:00
parent 17bfa35f77
commit aa3a93b6a0
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
5 changed files with 129 additions and 10 deletions

View file

@ -437,6 +437,8 @@ namespace client
std::unique_ptr<I2PServerTunnel>(serverTunnel))).second)
{
serverTunnel->Start ();
auto maxConns = section.second.get<uint32_t>(i2p::stream::I2CP_PARAM_STREAMING_MAX_CONNS_PER_MIN, i2p::stream::DEFAULT_MAX_CONNS_PER_MIN);
serverTunnel->SetMaxConnsPerMinute(maxConns);
numServerTunnels++;
}
else