From 94bcd8c2539b74e36053fd7fd1c8e6cb469c3930 Mon Sep 17 00:00:00 2001 From: Artem Boldariev Date: Tue, 25 Feb 2025 19:58:24 +0200 Subject: [PATCH] DoH: Bump the active streams processing limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit bumps the total number of active streams (= the opened streams for which a request is received, but response is not ready) to 60% of the total streams limit. The previous limit turned out to be too tight as revealed by longer (≥1h) runs of "stress:long:rpz:doh+udp:linux:*" tests. (cherry picked from commit eaad0aefe668408d8ae0792796852cc7bccaff0f) --- lib/isc/netmgr/http.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/isc/netmgr/http.c b/lib/isc/netmgr/http.c index aac68ba667..ab3917b2aa 100644 --- a/lib/isc/netmgr/http.c +++ b/lib/isc/netmgr/http.c @@ -1562,8 +1562,9 @@ http_too_many_active_streams(isc_nm_http_session_t *session) { * throttle it as it might be not a friend knocking at the * door. We already have some job to do for it. */ - const uint64_t max_active_streams = ISC_MAX( - STREAM_CLIENTS_PER_CONN, session->max_concurrent_streams / 3); + const uint64_t max_active_streams = + ISC_MAX(STREAM_CLIENTS_PER_CONN, + (session->max_concurrent_streams * 6) / 10); /* 60% */ if (session->client) { return false;