MCPcopy Create free account
hub / github.com/apache/httpd / ap_proxy_set_wstatus

Function ap_proxy_set_wstatus

modules/proxy/proxy_util.c:4322–4338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4320}
4321
4322PROXY_DECLARE(apr_status_t) ap_proxy_set_wstatus(char c, int set, proxy_worker *w)
4323{
4324 unsigned int *status = &w->s->status;
4325 char flag = toupper(c);
4326 proxy_wstat_t *pwt = proxy_wstat_tbl;
4327 while (pwt->bit) {
4328 if (flag == pwt->flag) {
4329 if (set)
4330 *status |= pwt->bit;
4331 else
4332 *status &= ~(pwt->bit);
4333 return APR_SUCCESS;
4334 }
4335 pwt++;
4336 }
4337 return APR_EINVAL;
4338}
4339
4340PROXY_DECLARE(char *) ap_proxy_parse_wstatus(apr_pool_t *p, proxy_worker *w)
4341{

Callers 3

set_worker_paramFunction · 0.85
hc_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected