diff options
author | Yann Ylavic <ylavic@apache.org> | 2024-10-11 13:43:36 +0200 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2024-10-11 13:43:36 +0200 |
commit | e1e8624e296a918122d57870daa33c1ad463f0b9 (patch) | |
tree | 08a3cc27d3f97ec36b25d8f1ee0eacd10cf6bf9c /support/ab.c | |
parent | * modules/http/http_filters.c (parse_chunk_size): (diff) | |
download | apache2-e1e8624e296a918122d57870daa33c1ad463f0b9.tar.xz apache2-e1e8624e296a918122d57870daa33c1ad463f0b9.zip |
ab: Map -c0 to -c<number of workers>. PR 69383
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1921256 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/ab.c')
-rw-r--r-- | support/ab.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/support/ab.c b/support/ab.c index 3ff229de3a..a7d20f0e11 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)); |