From 37ec1af92666bfde7813b353900899c1397d09dd Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 30 Sep 2012 15:38:37 +0000 Subject: [PATCH] add TODO comment --- src/session_impl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index b7263343d..8b0dadaea 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -4330,6 +4330,9 @@ namespace aux { if (m_settings.smooth_connects && 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() && free_slots > -m_half_open.limit() && num_connections() < m_settings.connections_limit