]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
DoH: Bump the active streams processing limit
authorArtem Boldariev <artem@boldariev.com>
Tue, 25 Feb 2025 17:58:24 +0000 (19:58 +0200)
committerArtem Boldariev <artem@boldariev.com>
Mon, 3 Mar 2025 09:32:29 +0000 (11:32 +0200)
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.

lib/isc/netmgr/http.c

index b1ed237a0bec00052e1a8de8bd93a70859ec50ba..24210c057259540cb51d2662356a5795f7ef0f91 100644 (file)
@@ -1583,7 +1583,7 @@ http_too_many_active_streams(isc_nm_http_session_t *session) {
         */
        const uint64_t max_active_streams =
                ISC_MAX(ISC_NETMGR_MAX_STREAM_CLIENTS_PER_CONN,
-                       session->max_concurrent_streams / 3);
+                       (session->max_concurrent_streams * 6) / 10); /* 60% */
 
        if (session->client) {
                return false;