Fix PR54848 in a 2.4.x backportable format. Ideally deprecating the use

of ->client in whatever version of 2.4 this is added into would be
more logical.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1837225 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Jagielski
2018-08-01 11:27:28 +00:00
parent 8658f30e34
commit c7c68752c8
7 changed files with 32 additions and 16 deletions

View File

@ -122,13 +122,13 @@ static int noloris_monitor(apr_pool_t *pool, server_rec *s)
for (j = 0; j < thread_limit; ++j) {
ws = ap_get_scoreboard_worker_from_indexes(i, j);
if (ws->status == SERVER_BUSY_READ) {
n = apr_hash_get(connections, ws->client, APR_HASH_KEY_STRING);
n = apr_hash_get(connections, ws->client64, APR_HASH_KEY_STRING);
if (n == NULL) {
n = totals + index++;
*n = 0;
}
++*n;
apr_hash_set(connections, ws->client, APR_HASH_KEY_STRING, n);
apr_hash_set(connections, ws->client64, APR_HASH_KEY_STRING, n);
}
}
}