File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments