mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 06:29:59 -04:00
DoH: Bump the active streams processing limit
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 eaad0aefe6)
This commit is contained in:
parent
aa6fd85b0b
commit
94bcd8c253
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue