diff options
author | Yann Ylavic <ylavic@apache.org> | 2023-07-08 12:56:58 +0200 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2023-07-08 12:56:58 +0200 |
commit | cca42ea3a40e7cb396a4924d72d9f46aa51a6d47 (patch) | |
tree | ccb91ef321ff1cae0db230a597a7c98bd488afb9 /support | |
parent | ab: Allow to bind multiple addresses with -Baddr1,addr2,... (diff) | |
download | apache2-cca42ea3a40e7cb396a4924d72d9f46aa51a6d47.tar.xz apache2-cca42ea3a40e7cb396a4924d72d9f46aa51a6d47.zip |
ab: Follow up to r1910871: s/bind_num/bind_rr/g
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910872 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r-- | support/ab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/support/ab.c b/support/ab.c index be87fd68ac..318eea6d21 100644 --- a/support/ab.c +++ b/support/ab.c @@ -361,7 +361,7 @@ struct worker { int requests; int concurrency; int polled; - int bind_num; + int bind_rr; /* next address to bind (round robin) */ int succeeded_once; /* response header received once */ apr_int64_t started; /* number of requests started, so no excess */ @@ -1613,10 +1613,10 @@ static void start_connection(struct connection * c) c->pollfd.client_data = c; if (bind_count) { - if (worker->bind_num >= bind_count) { - worker->bind_num = 0; + if (worker->bind_rr >= bind_count) { + worker->bind_rr = 0; } - if ((rv = apr_socket_bind(c->aprsock, bind_addrs[worker->bind_num++]))) { + if ((rv = apr_socket_bind(c->aprsock, bind_addrs[worker->bind_rr++]))) { graceful_strerror("bind", rv); close_connection(c); return; |