From: Yann Ylavic Date: Sat, 8 Jul 2023 10:56:58 +0000 (+0000) Subject: ab: Follow up to r1910871: s/bind_num/bind_rr/g X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cca42ea3a40e7cb396a4924d72d9f46aa51a6d47;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/support/ab.c b/support/ab.c index be87fd68ac9..318eea6d21e 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;