From: Yann Ylavic Date: Fri, 11 Oct 2024 11:43:36 +0000 (+0000) Subject: ab: Map -c0 to -c. PR 69383 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1e8624e296a918122d57870daa33c1ad463f0b9;p=thirdparty%2Fapache%2Fhttpd.git ab: Map -c0 to -c. PR 69383 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1921256 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index 3ff229de3a8..a7d20f0e11f 100644 --- a/support/ab.c +++ b/support/ab.c @@ -3376,6 +3376,9 @@ int main(int argc, const char * const argv[]) } #endif /* APR_HAS_THREADS */ + if (concurrency == 0) { + concurrency = num_workers; + } if (concurrency > ROUND_UP(MAX_CONCURRENCY, num_workers)) { fprintf(stderr, "%s: Invalid Concurrency [Range 0..%d]\n", argv[0], ROUND_UP(MAX_CONCURRENCY, num_workers));