Lines Matching defs:bsel

986     proxy_balancer *balancer, *bsel = NULL;
1049 bsel = ap_proxy_get_balancer(r->pool, conf,
1053 wsel = ap_proxy_get_worker(r->pool, bsel, conf, name);
1059 if (!bsel ||
1060 (*bsel->s->nonce &&
1063 strcmp(bsel->s->nonce, name) != 0
1082 if (bsel)
1083 recalc_factors(bsel);
1117 if (bsel && !was_usable && PROXY_WORKER_IS_USABLE(wsel)) {
1118 bsel->s->need_reset = 1;
1123 if (bsel && ok2change) {
1129 if ((strlen(val) < (sizeof(bsel->s->lbpname)-1)) &&
1130 strcmp(val, bsel->s->lbpname)) {
1134 PROXY_STRNCPY(bsel->s->lbpname, val);
1135 bsel->lbmethod = lbmethod;
1136 bsel->s->wupdated = apr_time_now();
1137 bsel->s->need_reset = 1;
1144 bsel->s->timeout = apr_time_from_sec(ival);
1150 bsel->s->max_attempts = ival;
1155 bsel->s->sticky_force = (ival != 0);
1158 if (strlen(val) < (sizeof(bsel->s->sticky_path)-1)) {
1160 *bsel->s->sticky_path = *bsel->s->sticky = '\0';
1163 PROXY_STRNCPY(bsel->s->sticky_path, val);
1164 PROXY_STRNCPY(bsel->s->sticky, val);
1166 if ((path = strchr((char *)bsel->s->sticky, '|'))) {
1168 PROXY_STRNCPY(bsel->s->sticky_path, path);
1178 nworker = ap_proxy_get_worker(r->pool, bsel, conf, val);
1179 if (!nworker && storage->num_free_slots(bsel->wslot)) {
1180 if ((rv = PROXY_GLOBAL_LOCK(bsel)) != APR_SUCCESS) {
1183 bsel->s->name);
1185 ret = ap_proxy_define_worker(conf->pool, &nworker, bsel, conf, val, 0);
1190 if ((rv = storage->grab(bsel->wslot, &index)) != APR_SUCCESS) {
1193 if ((rv = PROXY_GLOBAL_UNLOCK(bsel)) != APR_SUCCESS) {
1196 bsel->s->name);
1200 if ((rv = storage->dptr(bsel->wslot, index, (void *)&shm)) != APR_SUCCESS) {
1203 if ((rv = PROXY_GLOBAL_UNLOCK(bsel)) != APR_SUCCESS) {
1206 bsel->s->name);
1213 if ((rv = PROXY_GLOBAL_UNLOCK(bsel)) != APR_SUCCESS) {
1216 bsel->s->name);
1223 if ((rv = PROXY_GLOBAL_UNLOCK(bsel)) != APR_SUCCESS) {
1226 bsel->s->name);
1231 bsel->wupdated = bsel->s->wupdated = nworker->s->updated = apr_time_now();
1235 if ((rv = PROXY_GLOBAL_UNLOCK(bsel)) != APR_SUCCESS) {
1238 bsel->s->name);
1562 if (wsel && bsel) {
1594 ap_rvputs(r, "value='", bsel->s->name + sizeof(BALANCER_PREFIX) - 1,
1597 bsel->s->nonce, "'>\n", NULL);
1600 } else if (bsel) {
1605 ap_rvputs(r, bsel->s->name, "</h3>\n", NULL);
1616 if (strcmp(pname->provider_name, bsel->s->lbpname) == 0)
1623 ap_rprintf(r, "value='%" APR_TIME_T_FMT "'></td></tr>\n", apr_time_sec(bsel->s->timeout));
1625 ap_rprintf(r, "value='%d'></td></tr>\n", bsel->s->max_attempts);
1627 create_radio("b_sforce", bsel->s->sticky_force, r);
1629 if (strcmp(bsel->s->sticky, bsel->s->sticky_path)) {
1630 ap_rvputs(r, "value ='", bsel->s->sticky, " | ",
1631 bsel->s->sticky_path, NULL);
1634 ap_rvputs(r, "value ='", bsel->s->sticky, NULL);
1637 if (storage->num_free_slots(bsel->wslot) != 0) {
1644 ap_rvputs(r, "value='", bsel->s->name + sizeof(BALANCER_PREFIX) - 1,
1647 bsel->s->nonce, "'>\n", NULL);