Reuse HTTP connections and added totale/cached connection limits.

This commit is contained in:
Jari Sundell
2025-10-09 14:15:24 +02:00
committed by GitHub
parent bf53700f97
commit 2be730e4b3
4 changed files with 59 additions and 50 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ Control::is_shutdown_completed() {
// TODO: We keep http requests in the queue for a while after, so improve this check to ignore
// those.
if (torrent::net_thread::http_stack()->active() != 0 || !core()->http_queue()->empty())
if (torrent::net_thread::http_stack()->size() != 0 || !core()->http_queue()->empty())
return false;
return torrent::is_inactive();