Skip to content

Commit cca42ea

Browse files
committed
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
1 parent 4d73727 commit cca42ea

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

support/ab.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ struct worker {
361361
int requests;
362362
int concurrency;
363363
int polled;
364-
int bind_num;
364+
int bind_rr; /* next address to bind (round robin) */
365365
int succeeded_once; /* response header received once */
366366
apr_int64_t started; /* number of requests started, so no excess */
367367

@@ -1613,10 +1613,10 @@ static void start_connection(struct connection * c)
16131613
c->pollfd.client_data = c;
16141614

16151615
if (bind_count) {
1616-
if (worker->bind_num >= bind_count) {
1617-
worker->bind_num = 0;
1616+
if (worker->bind_rr >= bind_count) {
1617+
worker->bind_rr = 0;
16181618
}
1619-
if ((rv = apr_socket_bind(c->aprsock, bind_addrs[worker->bind_num++]))) {
1619+
if ((rv = apr_socket_bind(c->aprsock, bind_addrs[worker->bind_rr++]))) {
16201620
graceful_strerror("bind", rv);
16211621
close_connection(c);
16221622
return;

0 commit comments

Comments
 (0)