add TODO comment

This commit is contained in:
Arvid Norberg 2012-09-30 15:38:37 +00:00
parent 33943f7184
commit 37ec1af926
1 changed files with 3 additions and 0 deletions

View File

@ -4330,6 +4330,9 @@ namespace aux {
if (m_settings.smooth_connects && max_connections > (limit+1) / 2) if (m_settings.smooth_connects && max_connections > (limit+1) / 2)
max_connections = (limit+1) / 2; max_connections = (limit+1) / 2;
// TODO: use a lower limit than m_settings.connections_limit
// to allocate the to 10% or so of connection slots for incoming
// connections
if (!m_torrents.empty() if (!m_torrents.empty()
&& free_slots > -m_half_open.limit() && free_slots > -m_half_open.limit()
&& num_connections() < m_settings.connections_limit && num_connections() < m_settings.connections_limit