u 11 core/ngx_inet.c static ngx_int_t ngx_parse_unix_domain_url(ngx_pool_t *pool, ngx_url_t *u); u 12 core/ngx_inet.c static ngx_int_t ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u); u 13 core/ngx_inet.c static ngx_int_t ngx_parse_inet6_url(ngx_pool_t *pool, ngx_url_t *u); u 374 core/ngx_inet.c cidr->u.in.addr = ngx_inet_addr(addr, len); u 376 core/ngx_inet.c if (cidr->u.in.addr != INADDR_NONE) { u 380 core/ngx_inet.c cidr->u.in.mask = 0xffffffff; u 385 core/ngx_inet.c } else if (ngx_inet6_addr(addr, len, cidr->u.in6.addr.s6_addr) == NGX_OK) { u 389 core/ngx_inet.c ngx_memset(cidr->u.in6.mask.s6_addr, 0xff, 16); u 409 core/ngx_inet.c addr = cidr->u.in6.addr.s6_addr; u 410 core/ngx_inet.c mask = cidr->u.in6.mask.s6_addr; u 432 core/ngx_inet.c cidr->u.in.mask = htonl((ngx_uint_t) (0 - (1 << (32 - shift)))); u 436 core/ngx_inet.c cidr->u.in.mask = 0; u 439 core/ngx_inet.c if (cidr->u.in.addr == (cidr->u.in.addr & cidr->u.in.mask)) { u 443 core/ngx_inet.c cidr->u.in.addr &= cidr->u.in.mask; u 511 core/ngx_inet.c ngx_parse_url(ngx_pool_t *pool, ngx_url_t *u) u 515 core/ngx_inet.c p = u->url.data; u 518 core/ngx_inet.c return ngx_parse_unix_domain_url(pool, u); u 521 core/ngx_inet.c if ((p[0] == ':' || p[0] == '/') && !u->listen) { u 522 core/ngx_inet.c u->err = "invalid host"; u 527 core/ngx_inet.c return ngx_parse_inet6_url(pool, u); u 530 core/ngx_inet.c return ngx_parse_inet_url(pool, u); u 535 core/ngx_inet.c ngx_parse_unix_domain_url(ngx_pool_t *pool, ngx_url_t *u) u 542 core/ngx_inet.c len = u->url.len; u 543 core/ngx_inet.c path = u->url.data; u 548 core/ngx_inet.c if (u->uri_part) { u 556 core/ngx_inet.c u->uri.len = last - uri; u 557 core/ngx_inet.c u->uri.data = uri; u 562 core/ngx_inet.c u->err = "no path in the unix domain socket"; u 566 core/ngx_inet.c u->host.len = len++; u 567 core/ngx_inet.c u->host.data = path; u 570 core/ngx_inet.c u->err = "too long path in the unix domain socket"; u 574 core/ngx_inet.c u->socklen = sizeof(struct sockaddr_un); u 575 core/ngx_inet.c saun = (struct sockaddr_un *) &u->sockaddr; u 579 core/ngx_inet.c u->addrs = ngx_pcalloc(pool, sizeof(ngx_addr_t)); u 580 core/ngx_inet.c if (u->addrs == NULL) { u 589 core/ngx_inet.c u->family = AF_UNIX; u 590 core/ngx_inet.c u->naddrs = 1; u 595 core/ngx_inet.c u->addrs[0].sockaddr = (struct sockaddr *) saun; u 596 core/ngx_inet.c u->addrs[0].socklen = sizeof(struct sockaddr_un); u 597 core/ngx_inet.c u->addrs[0].name.len = len + 4; u 598 core/ngx_inet.c u->addrs[0].name.data = u->url.data; u 604 core/ngx_inet.c u->err = "the unix domain sockets are not supported on this platform"; u 613 core/ngx_inet.c ngx_parse_inet_url(ngx_pool_t *pool, ngx_url_t *u) u 621 core/ngx_inet.c u->socklen = sizeof(struct sockaddr_in); u 622 core/ngx_inet.c sin = (struct sockaddr_in *) &u->sockaddr; u 625 core/ngx_inet.c u->family = AF_INET; u 627 core/ngx_inet.c host = u->url.data; u 629 core/ngx_inet.c last = host + u->url.len; u 647 core/ngx_inet.c if (u->listen || !u->uri_part) { u 648 core/ngx_inet.c u->err = "invalid host"; u 652 core/ngx_inet.c u->uri.len = last - uri; u 653 core/ngx_inet.c u->uri.data = uri; u 668 core/ngx_inet.c u->err = "invalid port"; u 675 core/ngx_inet.c u->err = "invalid port"; u 679 core/ngx_inet.c u->port = (in_port_t) n; u 682 core/ngx_inet.c u->port_text.len = len; u 683 core/ngx_inet.c u->port_text.data = port; u 690 core/ngx_inet.c if (u->listen) { u 699 core/ngx_inet.c u->err = "invalid port"; u 703 core/ngx_inet.c u->port = (in_port_t) n; u 706 core/ngx_inet.c u->port_text.len = last - host; u 707 core/ngx_inet.c u->port_text.data = host; u 709 core/ngx_inet.c u->wildcard = 1; u 716 core/ngx_inet.c u->no_port = 1; u 722 core/ngx_inet.c u->err = "no host"; u 730 core/ngx_inet.c u->host.len = len; u 731 core/ngx_inet.c u->host.data = host; u 733 core/ngx_inet.c if (u->no_resolve) { u 753 core/ngx_inet.c u->err = "host not found"; u 761 core/ngx_inet.c u->wildcard = 1; u 766 core/ngx_inet.c u->wildcard = 1; u 769 core/ngx_inet.c if (u->no_port) { u 770 core/ngx_inet.c u->port = u->default_port; u 771 core/ngx_inet.c sin->sin_port = htons(u->default_port); u 774 core/ngx_inet.c if (u->listen) { u 778 core/ngx_inet.c if (ngx_inet_resolve_host(pool, u) != NGX_OK) { u 787 core/ngx_inet.c ngx_parse_inet6_url(ngx_pool_t *pool, ngx_url_t *u) u 795 core/ngx_inet.c u->socklen = sizeof(struct sockaddr_in6); u 796 core/ngx_inet.c sin6 = (struct sockaddr_in6 *) &u->sockaddr; u 799 core/ngx_inet.c host = u->url.data + 1; u 801 core/ngx_inet.c last = u->url.data + u->url.len; u 806 core/ngx_inet.c u->err = "invalid host"; u 817 core/ngx_inet.c if (u->listen || !u->uri_part) { u 818 core/ngx_inet.c u->err = "invalid host"; u 822 core/ngx_inet.c u->uri.len = last - uri; u 823 core/ngx_inet.c u->uri.data = uri; u 832 core/ngx_inet.c u->err = "invalid port"; u 839 core/ngx_inet.c u->err = "invalid port"; u 843 core/ngx_inet.c u->port = (in_port_t) n; u 846 core/ngx_inet.c u->port_text.len = len; u 847 core/ngx_inet.c u->port_text.data = port; u 850 core/ngx_inet.c u->no_port = 1; u 857 core/ngx_inet.c u->err = "no host"; u 861 core/ngx_inet.c u->host.len = len; u 862 core/ngx_inet.c u->host.data = host; u 865 core/ngx_inet.c u->err = "invalid IPv6 address"; u 870 core/ngx_inet.c u->wildcard = 1; u 873 core/ngx_inet.c u->family = AF_INET6; u 875 core/ngx_inet.c if (u->no_resolve) { u 879 core/ngx_inet.c if (u->no_port) { u 880 core/ngx_inet.c u->port = u->default_port; u 881 core/ngx_inet.c sin6->sin6_port = htons(u->default_port); u 888 core/ngx_inet.c u->err = "the INET6 sockets are not supported on this platform"; u 897 core/ngx_inet.c ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u) u 909 core/ngx_inet.c port = htons(u->port); u 911 core/ngx_inet.c in_addr = ngx_inet_addr(u->host.data, u->host.len); u 914 core/ngx_inet.c host = ngx_alloc(u->host.len + 1, pool->log); u 919 core/ngx_inet.c (void) ngx_cpystrn(host, u->host.data, u->host.len + 1); u 926 core/ngx_inet.c u->err = "host not found"; u 930 core/ngx_inet.c if (u->one_addr == 0) { u 939 core/ngx_inet.c u->addrs = ngx_pcalloc(pool, i * sizeof(ngx_addr_t)); u 940 core/ngx_inet.c if (u->addrs == NULL) { u 944 core/ngx_inet.c u->naddrs = i; u 946 core/ngx_inet.c for (i = 0; i < u->naddrs; i++) { u 957 core/ngx_inet.c u->addrs[i].sockaddr = (struct sockaddr *) sin; u 958 core/ngx_inet.c u->addrs[i].socklen = sizeof(struct sockaddr_in); u 969 core/ngx_inet.c u->addrs[i].name.len = len; u 970 core/ngx_inet.c u->addrs[i].name.data = p; u 977 core/ngx_inet.c u->addrs = ngx_pcalloc(pool, sizeof(ngx_addr_t)); u 978 core/ngx_inet.c if (u->addrs == NULL) { u 987 core/ngx_inet.c u->naddrs = 1; u 993 core/ngx_inet.c u->addrs[0].sockaddr = (struct sockaddr *) sin; u 994 core/ngx_inet.c u->addrs[0].socklen = sizeof(struct sockaddr_in); u 996 core/ngx_inet.c p = ngx_pnalloc(pool, u->host.len + sizeof(":65535") - 1); u 1001 core/ngx_inet.c u->addrs[0].name.len = ngx_sprintf(p, "%V:%d", u 1002 core/ngx_inet.c &u->host, ntohs(port)) - p; u 1003 core/ngx_inet.c u->addrs[0].name.data = p; u 65 core/ngx_inet.h } u; u 115 core/ngx_inet.h ngx_int_t ngx_parse_url(ngx_pool_t *pool, ngx_url_t *u); u 116 core/ngx_inet.h ngx_int_t ngx_inet_resolve_host(ngx_pool_t *pool, ngx_url_t *u); u 404 core/ngx_resolver.c addrs = ngx_resolver_dup(r, rn->u.addrs, u 411 core/ngx_resolver.c addr = rn->u.addr; u 444 core/ngx_resolver.c ctx->name.data = rn->u.cname; u 483 core/ngx_resolver.c ngx_resolver_free_locked(r, rn->u.cname); u 487 core/ngx_resolver.c ngx_resolver_free_locked(r, rn->u.addrs); u 1266 core/ngx_resolver.c rn->u.addr = addr; u 1317 core/ngx_resolver.c rn->u.addrs = addrs; u 1319 core/ngx_resolver.c addrs = ngx_resolver_dup(r, rn->u.addrs, u 1371 core/ngx_resolver.c rn->u.cname = name.data; u 1978 core/ngx_resolver.c ngx_resolver_free_locked(r, rn->u.cname); u 1982 core/ngx_resolver.c ngx_resolver_free_locked(r, rn->u.addrs); u 65 core/ngx_resolver.h } u; u 1210 core/ngx_string.c uint32_t u, i, valid; u 1212 core/ngx_string.c u = **p; u 1214 core/ngx_string.c if (u > 0xf0) { u 1216 core/ngx_string.c u &= 0x07; u 1220 core/ngx_string.c } else if (u > 0xe0) { u 1222 core/ngx_string.c u &= 0x0f; u 1226 core/ngx_string.c } else if (u > 0xc0) { u 1228 core/ngx_string.c u &= 0x1f; u 1250 core/ngx_string.c u = (u << 6) | (i & 0x3f); u 1255 core/ngx_string.c if (u > valid) { u 1256 core/ngx_string.c return u; u 1086 event/ngx_event.c dc->mask = cidr.u.in.mask; u 1087 event/ngx_event.c dc->addr = cidr.u.in.addr; u 291 http/modules/ngx_http_access_module.c rule6->mask = cidr.u.in6.mask; u 292 http/modules/ngx_http_access_module.c rule6->addr = cidr.u.in6.addr; u 317 http/modules/ngx_http_access_module.c rule->mask = cidr.u.in.mask; u 318 http/modules/ngx_http_access_module.c rule->addr = cidr.u.in.addr; u 547 http/modules/ngx_http_fastcgi_module.c ngx_http_upstream_t *u; u 577 http/modules/ngx_http_fastcgi_module.c u = r->upstream; u 579 http/modules/ngx_http_fastcgi_module.c ngx_str_set(&u->schema, "fastcgi://"); u 580 http/modules/ngx_http_fastcgi_module.c u->output.tag = (ngx_buf_tag_t) &ngx_http_fastcgi_module; u 582 http/modules/ngx_http_fastcgi_module.c u->conf = &flcf->upstream; u 585 http/modules/ngx_http_fastcgi_module.c u->create_key = ngx_http_fastcgi_create_key; u 587 http/modules/ngx_http_fastcgi_module.c u->create_request = ngx_http_fastcgi_create_request; u 588 http/modules/ngx_http_fastcgi_module.c u->reinit_request = ngx_http_fastcgi_reinit_request; u 589 http/modules/ngx_http_fastcgi_module.c u->process_header = ngx_http_fastcgi_process_header; u 590 http/modules/ngx_http_fastcgi_module.c u->abort_request = ngx_http_fastcgi_abort_request; u 591 http/modules/ngx_http_fastcgi_module.c u->finalize_request = ngx_http_fastcgi_finalize_request; u 593 http/modules/ngx_http_fastcgi_module.c u->buffering = 1; u 595 http/modules/ngx_http_fastcgi_module.c u->pipe = ngx_pcalloc(r->pool, sizeof(ngx_event_pipe_t)); u 596 http/modules/ngx_http_fastcgi_module.c if (u->pipe == NULL) { u 600 http/modules/ngx_http_fastcgi_module.c u->pipe->input_filter = ngx_http_fastcgi_input_filter; u 601 http/modules/ngx_http_fastcgi_module.c u->pipe->input_ctx = r; u 617 http/modules/ngx_http_fastcgi_module.c ngx_http_upstream_t *u; u 639 http/modules/ngx_http_fastcgi_module.c u = r->upstream; u 641 http/modules/ngx_http_fastcgi_module.c u->resolved = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_resolved_t)); u 642 http/modules/ngx_http_fastcgi_module.c if (u->resolved == NULL) { u 647 http/modules/ngx_http_fastcgi_module.c u->resolved->sockaddr = url.addrs[0].sockaddr; u 648 http/modules/ngx_http_fastcgi_module.c u->resolved->socklen = url.addrs[0].socklen; u 649 http/modules/ngx_http_fastcgi_module.c u->resolved->naddrs = 1; u 650 http/modules/ngx_http_fastcgi_module.c u->resolved->host = url.addrs[0].name; u 653 http/modules/ngx_http_fastcgi_module.c u->resolved->host = url.host; u 654 http/modules/ngx_http_fastcgi_module.c u->resolved->port = url.port; u 655 http/modules/ngx_http_fastcgi_module.c u->resolved->no_port = url.no_port; u 1145 http/modules/ngx_http_fastcgi_module.c ngx_http_upstream_t *u; u 1156 http/modules/ngx_http_fastcgi_module.c u = r->upstream; u 1162 http/modules/ngx_http_fastcgi_module.c f->pos = u->buffer.pos; u 1163 http/modules/ngx_http_fastcgi_module.c f->last = u->buffer.last; u 1167 http/modules/ngx_http_fastcgi_module.c u->buffer.pos = f->pos; u 1168 http/modules/ngx_http_fastcgi_module.c u->buffer.last = f->last; u 1198 http/modules/ngx_http_fastcgi_module.c if (u->buffer.pos + f->padding < u->buffer.last) { u 1200 http/modules/ngx_http_fastcgi_module.c u->buffer.pos += f->padding; u 1205 http/modules/ngx_http_fastcgi_module.c if (u->buffer.pos + f->padding == u->buffer.last) { u 1207 http/modules/ngx_http_fastcgi_module.c u->buffer.pos = u->buffer.last; u 1212 http/modules/ngx_http_fastcgi_module.c f->padding -= u->buffer.last - u->buffer.pos; u 1213 http/modules/ngx_http_fastcgi_module.c u->buffer.pos = u->buffer.last; u 1224 http/modules/ngx_http_fastcgi_module.c msg = u->buffer.pos; u 1226 http/modules/ngx_http_fastcgi_module.c if (u->buffer.pos + f->length <= u->buffer.last) { u 1227 http/modules/ngx_http_fastcgi_module.c u->buffer.pos += f->length; u 1232 http/modules/ngx_http_fastcgi_module.c f->length -= u->buffer.last - u->buffer.pos; u 1233 http/modules/ngx_http_fastcgi_module.c u->buffer.pos = u->buffer.last; u 1236 http/modules/ngx_http_fastcgi_module.c for (p = u->buffer.pos - 1; msg < p; p--) { u 1262 http/modules/ngx_http_fastcgi_module.c if (u->buffer.pos == u->buffer.last) { u 1273 http/modules/ngx_http_fastcgi_module.c u->buffer.pos = u->buffer.start u 1276 http/modules/ngx_http_fastcgi_module.c u->buffer.pos = u->buffer.start; u 1279 http/modules/ngx_http_fastcgi_module.c u->buffer.pos = u->buffer.start; u 1281 http/modules/ngx_http_fastcgi_module.c u->buffer.last = u->buffer.pos; u 1305 http/modules/ngx_http_fastcgi_module.c start = u->buffer.start + r->cache->header_start; u 1307 http/modules/ngx_http_fastcgi_module.c len = u->buffer.pos - start - 2 * sizeof(ngx_http_fastcgi_header_t); u 1329 http/modules/ngx_http_fastcgi_module.c r->cache->header_start += u->buffer.pos - start u 1340 http/modules/ngx_http_fastcgi_module.c start = u->buffer.pos; u 1342 http/modules/ngx_http_fastcgi_module.c if (u->buffer.pos + f->length < u->buffer.last) { u 1349 http/modules/ngx_http_fastcgi_module.c last = u->buffer.last; u 1350 http/modules/ngx_http_fastcgi_module.c u->buffer.last = u->buffer.pos + f->length; u 1358 http/modules/ngx_http_fastcgi_module.c part_start = u->buffer.pos; u 1359 http/modules/ngx_http_fastcgi_module.c part_end = u->buffer.last; u 1361 http/modules/ngx_http_fastcgi_module.c rc = ngx_http_parse_header_line(r, &u->buffer, 1); u 1374 http/modules/ngx_http_fastcgi_module.c h = ngx_list_push(&u->headers_in.headers); u 1382 http/modules/ngx_http_fastcgi_module.c size = u->buffer.pos - part_start; u 1400 http/modules/ngx_http_fastcgi_module.c p = ngx_cpymem(p, part_start, u->buffer.pos - part_start); u 1463 http/modules/ngx_http_fastcgi_module.c if (u->buffer.pos < u->buffer.last) { u 1479 http/modules/ngx_http_fastcgi_module.c if (u->headers_in.status) { u 1480 http/modules/ngx_http_fastcgi_module.c status_line = &u->headers_in.status->value; u 1491 http/modules/ngx_http_fastcgi_module.c u->headers_in.status_n = status; u 1492 http/modules/ngx_http_fastcgi_module.c u->headers_in.status_line = *status_line; u 1494 http/modules/ngx_http_fastcgi_module.c } else if (u->headers_in.location) { u 1495 http/modules/ngx_http_fastcgi_module.c u->headers_in.status_n = 302; u 1496 http/modules/ngx_http_fastcgi_module.c ngx_str_set(&u->headers_in.status_line, u 1500 http/modules/ngx_http_fastcgi_module.c u->headers_in.status_n = 200; u 1501 http/modules/ngx_http_fastcgi_module.c ngx_str_set(&u->headers_in.status_line, "200 OK"); u 1504 http/modules/ngx_http_fastcgi_module.c if (u->state) { u 1505 http/modules/ngx_http_fastcgi_module.c u->state->status = u->headers_in.status_n; u 1520 http/modules/ngx_http_fastcgi_module.c u->buffer.last = last; u 1523 http/modules/ngx_http_fastcgi_module.c f->length -= u->buffer.pos - start; u 1559 http/modules/ngx_http_fastcgi_module.c if (u->buffer.pos < u->buffer.last) { u 2609 http/modules/ngx_http_fastcgi_module.c ngx_url_t u; u 2652 http/modules/ngx_http_fastcgi_module.c ngx_memzero(&u, sizeof(ngx_url_t)); u 2654 http/modules/ngx_http_fastcgi_module.c u.url = value[1]; u 2655 http/modules/ngx_http_fastcgi_module.c u.no_resolve = 1; u 2657 http/modules/ngx_http_fastcgi_module.c flcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); u 60 http/modules/ngx_http_geo_module.c } u; u 166 http/modules/ngx_http_geo_module.c ngx_radix32tree_find(ctx->u.tree, ngx_http_geo_addr(r, ctx)); u 187 http/modules/ngx_http_geo_module.c *v = *ctx->u.high.default_value; u 191 http/modules/ngx_http_geo_module.c range = ctx->u.high.low[addr >> 16]; u 398 http/modules/ngx_http_geo_module.c geo->u.high = ctx.high; u 418 http/modules/ngx_http_geo_module.c geo->u.tree = ctx.tree; u 904 http/modules/ngx_http_geo_module.c cidr.u.in.addr = 0; u 905 http/modules/ngx_http_geo_module.c cidr.u.in.mask = 0; u 923 http/modules/ngx_http_geo_module.c if (ngx_radix32tree_delete(ctx->tree, cidr.u.in.addr, u 924 http/modules/ngx_http_geo_module.c cidr.u.in.mask) u 942 http/modules/ngx_http_geo_module.c rc = ngx_radix32tree_insert(ctx->tree, cidr.u.in.addr, cidr.u.in.mask, u 955 http/modules/ngx_http_geo_module.c ngx_radix32tree_find(ctx->tree, cidr.u.in.addr & cidr.u.in.mask); u 961 http/modules/ngx_http_geo_module.c rc = ngx_radix32tree_delete(ctx->tree, cidr.u.in.addr, cidr.u.in.mask); u 1044 http/modules/ngx_http_geo_module.c c->addr = cidr->u.in.addr; u 1045 http/modules/ngx_http_geo_module.c c->mask = cidr->u.in.mask; u 1057 http/modules/ngx_http_geo_module.c cidr->u.in.addr = 0xffffffff; u 1058 http/modules/ngx_http_geo_module.c cidr->u.in.mask = 0xffffffff; u 1080 http/modules/ngx_http_geo_module.c cidr->u.in.addr = ntohl(cidr->u.in.addr); u 1081 http/modules/ngx_http_geo_module.c cidr->u.in.mask = ntohl(cidr->u.in.mask); u 149 http/modules/ngx_http_memcached_module.c ngx_http_upstream_t *u; u 171 http/modules/ngx_http_memcached_module.c u = r->upstream; u 173 http/modules/ngx_http_memcached_module.c ngx_str_set(&u->schema, "memcached://"); u 174 http/modules/ngx_http_memcached_module.c u->output.tag = (ngx_buf_tag_t) &ngx_http_memcached_module; u 178 http/modules/ngx_http_memcached_module.c u->conf = &mlcf->upstream; u 180 http/modules/ngx_http_memcached_module.c u->create_request = ngx_http_memcached_create_request; u 181 http/modules/ngx_http_memcached_module.c u->reinit_request = ngx_http_memcached_reinit_request; u 182 http/modules/ngx_http_memcached_module.c u->process_header = ngx_http_memcached_process_header; u 183 http/modules/ngx_http_memcached_module.c u->abort_request = ngx_http_memcached_abort_request; u 184 http/modules/ngx_http_memcached_module.c u->finalize_request = ngx_http_memcached_finalize_request; u 196 http/modules/ngx_http_memcached_module.c u->input_filter_init = ngx_http_memcached_filter_init; u 197 http/modules/ngx_http_memcached_module.c u->input_filter = ngx_http_memcached_filter; u 198 http/modules/ngx_http_memcached_module.c u->input_filter_ctx = ctx; u 285 http/modules/ngx_http_memcached_module.c ngx_http_upstream_t *u; u 288 http/modules/ngx_http_memcached_module.c u = r->upstream; u 290 http/modules/ngx_http_memcached_module.c for (p = u->buffer.pos; p < u->buffer.last; p++) { u 302 http/modules/ngx_http_memcached_module.c line.len = p - u->buffer.pos - 1; u 303 http/modules/ngx_http_memcached_module.c line.data = u->buffer.pos; u 308 http/modules/ngx_http_memcached_module.c p = u->buffer.pos; u 356 http/modules/ngx_http_memcached_module.c u->headers_in.status_n = 200; u 357 http/modules/ngx_http_memcached_module.c u->state->status = 200; u 358 http/modules/ngx_http_memcached_module.c u->buffer.pos = p + 1; u 367 http/modules/ngx_http_memcached_module.c u->headers_in.status_n = 404; u 368 http/modules/ngx_http_memcached_module.c u->state->status = 404; u 387 http/modules/ngx_http_memcached_module.c ngx_http_upstream_t *u; u 389 http/modules/ngx_http_memcached_module.c u = ctx->request->upstream; u 391 http/modules/ngx_http_memcached_module.c u->length += NGX_HTTP_MEMCACHED_END; u 405 http/modules/ngx_http_memcached_module.c ngx_http_upstream_t *u; u 407 http/modules/ngx_http_memcached_module.c u = ctx->request->upstream; u 408 http/modules/ngx_http_memcached_module.c b = &u->buffer; u 410 http/modules/ngx_http_memcached_module.c if (u->length == ctx->rest) { u 420 http/modules/ngx_http_memcached_module.c u->length = 0; u 426 http/modules/ngx_http_memcached_module.c u->length -= bytes; u 432 http/modules/ngx_http_memcached_module.c for (cl = u->out_bufs, ll = &u->out_bufs; cl; cl = cl->next) { u 436 http/modules/ngx_http_memcached_module.c cl = ngx_chain_get_free_buf(ctx->request->pool, &u->free_bufs); u 450 http/modules/ngx_http_memcached_module.c cl->buf->tag = u->output.tag; u 454 http/modules/ngx_http_memcached_module.c bytes, b->last - b->pos, u->length, ctx->rest); u 456 http/modules/ngx_http_memcached_module.c if (bytes <= (ssize_t) (u->length - NGX_HTTP_MEMCACHED_END)) { u 457 http/modules/ngx_http_memcached_module.c u->length -= bytes; u 461 http/modules/ngx_http_memcached_module.c last += u->length - NGX_HTTP_MEMCACHED_END; u 471 http/modules/ngx_http_memcached_module.c u->length = ctx->rest; u 589 http/modules/ngx_http_memcached_module.c ngx_url_t u; u 598 http/modules/ngx_http_memcached_module.c ngx_memzero(&u, sizeof(ngx_url_t)); u 600 http/modules/ngx_http_memcached_module.c u.url = value[1]; u 601 http/modules/ngx_http_memcached_module.c u.no_resolve = 1; u 603 http/modules/ngx_http_memcached_module.c mlcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); u 138 http/modules/ngx_http_proxy_module.c static void ngx_http_proxy_set_vars(ngx_url_t *u, ngx_http_proxy_vars_t *v); u 556 http/modules/ngx_http_proxy_module.c ngx_http_upstream_t *u; u 573 http/modules/ngx_http_proxy_module.c u = r->upstream; u 577 http/modules/ngx_http_proxy_module.c u->schema = plcf->vars.schema; u 579 http/modules/ngx_http_proxy_module.c u->ssl = (plcf->upstream.ssl != NULL); u 588 http/modules/ngx_http_proxy_module.c u->output.tag = (ngx_buf_tag_t) &ngx_http_proxy_module; u 590 http/modules/ngx_http_proxy_module.c u->conf = &plcf->upstream; u 593 http/modules/ngx_http_proxy_module.c u->create_key = ngx_http_proxy_create_key; u 595 http/modules/ngx_http_proxy_module.c u->create_request = ngx_http_proxy_create_request; u 596 http/modules/ngx_http_proxy_module.c u->reinit_request = ngx_http_proxy_reinit_request; u 597 http/modules/ngx_http_proxy_module.c u->process_header = ngx_http_proxy_process_status_line; u 598 http/modules/ngx_http_proxy_module.c u->abort_request = ngx_http_proxy_abort_request; u 599 http/modules/ngx_http_proxy_module.c u->finalize_request = ngx_http_proxy_finalize_request; u 603 http/modules/ngx_http_proxy_module.c u->rewrite_redirect = ngx_http_proxy_rewrite_redirect; u 606 http/modules/ngx_http_proxy_module.c u->buffering = plcf->upstream.buffering; u 608 http/modules/ngx_http_proxy_module.c u->pipe = ngx_pcalloc(r->pool, sizeof(ngx_event_pipe_t)); u 609 http/modules/ngx_http_proxy_module.c if (u->pipe == NULL) { u 613 http/modules/ngx_http_proxy_module.c u->pipe->input_filter = ngx_event_pipe_copy_input_filter; u 615 http/modules/ngx_http_proxy_module.c u->accel = 1; u 636 http/modules/ngx_http_proxy_module.c ngx_http_upstream_t *u; u 666 http/modules/ngx_http_proxy_module.c u = r->upstream; u 668 http/modules/ngx_http_proxy_module.c u->schema.len = add; u 669 http/modules/ngx_http_proxy_module.c u->schema.data = proxy.data; u 706 http/modules/ngx_http_proxy_module.c ctx->vars.key_start = u->schema; u 710 http/modules/ngx_http_proxy_module.c u->resolved = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_resolved_t)); u 711 http/modules/ngx_http_proxy_module.c if (u->resolved == NULL) { u 716 http/modules/ngx_http_proxy_module.c u->resolved->sockaddr = url.addrs[0].sockaddr; u 717 http/modules/ngx_http_proxy_module.c u->resolved->socklen = url.addrs[0].socklen; u 718 http/modules/ngx_http_proxy_module.c u->resolved->naddrs = 1; u 719 http/modules/ngx_http_proxy_module.c u->resolved->host = url.addrs[0].name; u 722 http/modules/ngx_http_proxy_module.c u->resolved->host = url.host; u 723 http/modules/ngx_http_proxy_module.c u->resolved->port = (in_port_t) (url.no_port ? port : url.port); u 724 http/modules/ngx_http_proxy_module.c u->resolved->no_port = url.no_port; u 740 http/modules/ngx_http_proxy_module.c ngx_http_upstream_t *u; u 744 http/modules/ngx_http_proxy_module.c u = r->upstream; u 774 http/modules/ngx_http_proxy_module.c u->uri = ctx->vars.uri; u 781 http/modules/ngx_http_proxy_module.c u->uri = r->unparsed_uri; u 824 http/modules/ngx_http_proxy_module.c u->uri = *key; u 843 http/modules/ngx_http_proxy_module.c ngx_http_upstream_t *u; u 850 http/modules/ngx_http_proxy_module.c u = r->upstream; u 854 http/modules/ngx_http_proxy_module.c if (u->method.len) { u 856 http/modules/ngx_http_proxy_module.c method = u->method; u 979 http/modules/ngx_http_proxy_module.c u->uri.data = b->last; u 1008 http/modules/ngx_http_proxy_module.c u->uri.len = b->last - u->uri.data; u 1111 http/modules/ngx_http_proxy_module.c body = u->request_bufs; u 1112 http/modules/ngx_http_proxy_module.c u->request_bufs = cl; u 1136 http/modules/ngx_http_proxy_module.c u->request_bufs = cl; u 1173 http/modules/ngx_http_proxy_module.c ngx_http_upstream_t *u; u 1182 http/modules/ngx_http_proxy_module.c u = r->upstream; u 1184 http/modules/ngx_http_proxy_module.c rc = ngx_http_parse_status_line(r, &u->buffer, &ctx->status); u 1205 http/modules/ngx_http_proxy_module.c if (u->accel) { u 1211 http/modules/ngx_http_proxy_module.c u->state->status = NGX_HTTP_OK; u 1216 http/modules/ngx_http_proxy_module.c if (u->state) { u 1217 http/modules/ngx_http_proxy_module.c u->state->status = ctx->status.code; u 1220 http/modules/ngx_http_proxy_module.c u->headers_in.status_n = ctx->status.code; u 1223 http/modules/ngx_http_proxy_module.c u->headers_in.status_line.len = len; u 1225 http/modules/ngx_http_proxy_module.c u->headers_in.status_line.data = ngx_pnalloc(r->pool, len); u 1226 http/modules/ngx_http_proxy_module.c if (u->headers_in.status_line.data == NULL) { u 1230 http/modules/ngx_http_proxy_module.c ngx_memcpy(u->headers_in.status_line.data, ctx->status.start, len); u 1234 http/modules/ngx_http_proxy_module.c u->headers_in.status_n, &u->headers_in.status_line); u 1236 http/modules/ngx_http_proxy_module.c u->process_header = ngx_http_proxy_process_header; u 2349 http/modules/ngx_http_proxy_module.c ngx_url_t u; u 2421 http/modules/ngx_http_proxy_module.c ngx_memzero(&u, sizeof(ngx_url_t)); u 2423 http/modules/ngx_http_proxy_module.c u.url.len = url->len - add; u 2424 http/modules/ngx_http_proxy_module.c u.url.data = url->data + add; u 2425 http/modules/ngx_http_proxy_module.c u.default_port = port; u 2426 http/modules/ngx_http_proxy_module.c u.uri_part = 1; u 2427 http/modules/ngx_http_proxy_module.c u.no_resolve = 1; u 2429 http/modules/ngx_http_proxy_module.c plcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); u 2438 http/modules/ngx_http_proxy_module.c ngx_http_proxy_set_vars(&u, &plcf->vars); u 2778 http/modules/ngx_http_proxy_module.c ngx_http_proxy_set_vars(ngx_url_t *u, ngx_http_proxy_vars_t *v) u 2780 http/modules/ngx_http_proxy_module.c if (u->family != AF_UNIX) { u 2782 http/modules/ngx_http_proxy_module.c if (u->no_port || u->port == u->default_port) { u 2784 http/modules/ngx_http_proxy_module.c v->host_header = u->host; u 2786 http/modules/ngx_http_proxy_module.c if (u->default_port == 80) { u 2794 http/modules/ngx_http_proxy_module.c v->host_header.len = u->host.len + 1 + u->port_text.len; u 2795 http/modules/ngx_http_proxy_module.c v->host_header.data = u->host.data; u 2796 http/modules/ngx_http_proxy_module.c v->port = u->port_text; u 2804 http/modules/ngx_http_proxy_module.c v->key_start.len += sizeof("unix:") - 1 + u->host.len + 1; u 2807 http/modules/ngx_http_proxy_module.c v->uri = u->uri; u 364 http/modules/ngx_http_realip_module.c from->mask = cidr.u.in.mask; u 365 http/modules/ngx_http_realip_module.c from->addr = cidr.u.in.addr; u 473 http/modules/ngx_http_referer_module.c ngx_str_t *u; u 476 http/modules/ngx_http_referer_module.c u = NGX_HTTP_REFERER_NO_URI_PART; u 479 http/modules/ngx_http_referer_module.c u = ngx_palloc(cf->pool, sizeof(ngx_str_t)); u 480 http/modules/ngx_http_referer_module.c if (u == NULL) { u 484 http/modules/ngx_http_referer_module.c *u = *uri; u 487 http/modules/ngx_http_referer_module.c rc = ngx_hash_add_key(keys, value, u, NGX_HASH_WILDCARD_KEY); u 370 http/modules/ngx_http_scgi_module.c ngx_http_upstream_t *u; u 399 http/modules/ngx_http_scgi_module.c u = r->upstream; u 401 http/modules/ngx_http_scgi_module.c ngx_str_set(&u->schema, "scgi://"); u 402 http/modules/ngx_http_scgi_module.c u->output.tag = (ngx_buf_tag_t) &ngx_http_scgi_module; u 404 http/modules/ngx_http_scgi_module.c u->conf = &scf->upstream; u 407 http/modules/ngx_http_scgi_module.c u->create_key = ngx_http_scgi_create_key; u 409 http/modules/ngx_http_scgi_module.c u->create_request = ngx_http_scgi_create_request; u 410 http/modules/ngx_http_scgi_module.c u->reinit_request = ngx_http_scgi_reinit_request; u 411 http/modules/ngx_http_scgi_module.c u->process_header = ngx_http_scgi_process_status_line; u 412 http/modules/ngx_http_scgi_module.c u->abort_request = ngx_http_scgi_abort_request; u 413 http/modules/ngx_http_scgi_module.c u->finalize_request = ngx_http_scgi_finalize_request; u 415 http/modules/ngx_http_scgi_module.c u->buffering = 1; u 417 http/modules/ngx_http_scgi_module.c u->pipe = ngx_pcalloc(r->pool, sizeof(ngx_event_pipe_t)); u 418 http/modules/ngx_http_scgi_module.c if (u->pipe == NULL) { u 422 http/modules/ngx_http_scgi_module.c u->pipe->input_filter = ngx_event_pipe_copy_input_filter; u 423 http/modules/ngx_http_scgi_module.c u->pipe->input_ctx = r; u 439 http/modules/ngx_http_scgi_module.c ngx_http_upstream_t *u; u 461 http/modules/ngx_http_scgi_module.c u = r->upstream; u 463 http/modules/ngx_http_scgi_module.c u->resolved = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_resolved_t)); u 464 http/modules/ngx_http_scgi_module.c if (u->resolved == NULL) { u 469 http/modules/ngx_http_scgi_module.c u->resolved->sockaddr = url.addrs[0].sockaddr; u 470 http/modules/ngx_http_scgi_module.c u->resolved->socklen = url.addrs[0].socklen; u 471 http/modules/ngx_http_scgi_module.c u->resolved->naddrs = 1; u 472 http/modules/ngx_http_scgi_module.c u->resolved->host = url.addrs[0].name; u 475 http/modules/ngx_http_scgi_module.c u->resolved->host = url.host; u 476 http/modules/ngx_http_scgi_module.c u->resolved->port = url.port; u 477 http/modules/ngx_http_scgi_module.c u->resolved->no_port = url.no_port; u 791 http/modules/ngx_http_scgi_module.c ngx_http_upstream_t *u; u 799 http/modules/ngx_http_scgi_module.c u = r->upstream; u 801 http/modules/ngx_http_scgi_module.c rc = ngx_http_parse_status_line(r, &u->buffer, status); u 811 http/modules/ngx_http_scgi_module.c u->process_header = ngx_http_scgi_process_header; u 816 http/modules/ngx_http_scgi_module.c if (u->state) { u 817 http/modules/ngx_http_scgi_module.c u->state->status = status->code; u 820 http/modules/ngx_http_scgi_module.c u->headers_in.status_n = status->code; u 823 http/modules/ngx_http_scgi_module.c u->headers_in.status_line.len = len; u 825 http/modules/ngx_http_scgi_module.c u->headers_in.status_line.data = ngx_pnalloc(r->pool, len); u 826 http/modules/ngx_http_scgi_module.c if (u->headers_in.status_line.data == NULL) { u 830 http/modules/ngx_http_scgi_module.c ngx_memcpy(u->headers_in.status_line.data, status->start, len); u 834 http/modules/ngx_http_scgi_module.c u->headers_in.status_n, &u->headers_in.status_line); u 836 http/modules/ngx_http_scgi_module.c u->process_header = ngx_http_scgi_process_header; u 848 http/modules/ngx_http_scgi_module.c ngx_http_upstream_t *u; u 916 http/modules/ngx_http_scgi_module.c u = r->upstream; u 918 http/modules/ngx_http_scgi_module.c if (u->headers_in.status) { u 919 http/modules/ngx_http_scgi_module.c status_line = &u->headers_in.status->value; u 930 http/modules/ngx_http_scgi_module.c u->headers_in.status_n = status; u 931 http/modules/ngx_http_scgi_module.c u->headers_in.status_line = *status_line; u 933 http/modules/ngx_http_scgi_module.c } else if (u->headers_in.location) { u 935 http/modules/ngx_http_scgi_module.c u->headers_in.status_n = 302; u 936 http/modules/ngx_http_scgi_module.c ngx_str_set(&u->headers_in.status_line, u 943 http/modules/ngx_http_scgi_module.c u->headers_in.status_n = 200; u 944 http/modules/ngx_http_scgi_module.c ngx_str_set(&u->headers_in.status_line, "200 OK"); u 947 http/modules/ngx_http_scgi_module.c if (u->state) { u 948 http/modules/ngx_http_scgi_module.c u->state->status = u->headers_in.status_n; u 1484 http/modules/ngx_http_scgi_module.c ngx_url_t u; u 1522 http/modules/ngx_http_scgi_module.c ngx_memzero(&u, sizeof(ngx_url_t)); u 1524 http/modules/ngx_http_scgi_module.c u.url = value[1]; u 1525 http/modules/ngx_http_scgi_module.c u.no_resolve = 1; u 1527 http/modules/ngx_http_scgi_module.c scf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); u 403 http/modules/ngx_http_uwsgi_module.c ngx_http_upstream_t *u; u 432 http/modules/ngx_http_uwsgi_module.c u = r->upstream; u 434 http/modules/ngx_http_uwsgi_module.c ngx_str_set(&u->schema, "uwsgi://"); u 435 http/modules/ngx_http_uwsgi_module.c u->output.tag = (ngx_buf_tag_t) &ngx_http_uwsgi_module; u 437 http/modules/ngx_http_uwsgi_module.c u->conf = &uwcf->upstream; u 440 http/modules/ngx_http_uwsgi_module.c u->create_key = ngx_http_uwsgi_create_key; u 442 http/modules/ngx_http_uwsgi_module.c u->create_request = ngx_http_uwsgi_create_request; u 443 http/modules/ngx_http_uwsgi_module.c u->reinit_request = ngx_http_uwsgi_reinit_request; u 444 http/modules/ngx_http_uwsgi_module.c u->process_header = ngx_http_uwsgi_process_status_line; u 445 http/modules/ngx_http_uwsgi_module.c u->abort_request = ngx_http_uwsgi_abort_request; u 446 http/modules/ngx_http_uwsgi_module.c u->finalize_request = ngx_http_uwsgi_finalize_request; u 448 http/modules/ngx_http_uwsgi_module.c u->buffering = 1; u 450 http/modules/ngx_http_uwsgi_module.c u->pipe = ngx_pcalloc(r->pool, sizeof(ngx_event_pipe_t)); u 451 http/modules/ngx_http_uwsgi_module.c if (u->pipe == NULL) { u 455 http/modules/ngx_http_uwsgi_module.c u->pipe->input_filter = ngx_event_pipe_copy_input_filter; u 456 http/modules/ngx_http_uwsgi_module.c u->pipe->input_ctx = r; u 472 http/modules/ngx_http_uwsgi_module.c ngx_http_upstream_t *u; u 494 http/modules/ngx_http_uwsgi_module.c u = r->upstream; u 496 http/modules/ngx_http_uwsgi_module.c u->resolved = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_resolved_t)); u 497 http/modules/ngx_http_uwsgi_module.c if (u->resolved == NULL) { u 502 http/modules/ngx_http_uwsgi_module.c u->resolved->sockaddr = url.addrs[0].sockaddr; u 503 http/modules/ngx_http_uwsgi_module.c u->resolved->socklen = url.addrs[0].socklen; u 504 http/modules/ngx_http_uwsgi_module.c u->resolved->naddrs = 1; u 505 http/modules/ngx_http_uwsgi_module.c u->resolved->host = url.addrs[0].name; u 508 http/modules/ngx_http_uwsgi_module.c u->resolved->host = url.host; u 509 http/modules/ngx_http_uwsgi_module.c u->resolved->port = url.port; u 510 http/modules/ngx_http_uwsgi_module.c u->resolved->no_port = url.no_port; u 842 http/modules/ngx_http_uwsgi_module.c ngx_http_upstream_t *u; u 850 http/modules/ngx_http_uwsgi_module.c u = r->upstream; u 852 http/modules/ngx_http_uwsgi_module.c rc = ngx_http_parse_status_line(r, &u->buffer, status); u 861 http/modules/ngx_http_uwsgi_module.c u->process_header = ngx_http_uwsgi_process_header; u 866 http/modules/ngx_http_uwsgi_module.c if (u->state) { u 867 http/modules/ngx_http_uwsgi_module.c u->state->status = status->code; u 870 http/modules/ngx_http_uwsgi_module.c u->headers_in.status_n = status->code; u 873 http/modules/ngx_http_uwsgi_module.c u->headers_in.status_line.len = len; u 875 http/modules/ngx_http_uwsgi_module.c u->headers_in.status_line.data = ngx_pnalloc(r->pool, len); u 876 http/modules/ngx_http_uwsgi_module.c if (u->headers_in.status_line.data == NULL) { u 880 http/modules/ngx_http_uwsgi_module.c ngx_memcpy(u->headers_in.status_line.data, status->start, len); u 884 http/modules/ngx_http_uwsgi_module.c u->headers_in.status_n, &u->headers_in.status_line); u 886 http/modules/ngx_http_uwsgi_module.c u->process_header = ngx_http_uwsgi_process_header; u 898 http/modules/ngx_http_uwsgi_module.c ngx_http_upstream_t *u; u 966 http/modules/ngx_http_uwsgi_module.c u = r->upstream; u 968 http/modules/ngx_http_uwsgi_module.c if (u->headers_in.status) { u 969 http/modules/ngx_http_uwsgi_module.c status_line = &u->headers_in.status->value; u 980 http/modules/ngx_http_uwsgi_module.c u->headers_in.status_n = status; u 981 http/modules/ngx_http_uwsgi_module.c u->headers_in.status_line = *status_line; u 983 http/modules/ngx_http_uwsgi_module.c } else if (u->headers_in.location) { u 985 http/modules/ngx_http_uwsgi_module.c u->headers_in.status_n = 302; u 986 http/modules/ngx_http_uwsgi_module.c ngx_str_set(&u->headers_in.status_line, u 993 http/modules/ngx_http_uwsgi_module.c u->headers_in.status_n = 200; u 994 http/modules/ngx_http_uwsgi_module.c ngx_str_set(&u->headers_in.status_line, "200 OK"); u 997 http/modules/ngx_http_uwsgi_module.c if (u->state) { u 998 http/modules/ngx_http_uwsgi_module.c u->state->status = u->headers_in.status_n; u 1535 http/modules/ngx_http_uwsgi_module.c ngx_url_t u; u 1573 http/modules/ngx_http_uwsgi_module.c ngx_memzero(&u, sizeof(ngx_url_t)); u 1575 http/modules/ngx_http_uwsgi_module.c u.url = value[1]; u 1576 http/modules/ngx_http_uwsgi_module.c u.no_resolve = 1; u 1578 http/modules/ngx_http_uwsgi_module.c uwcf->upstream.upstream = ngx_http_upstream_add(cf, &u, 0); u 1162 http/ngx_http.c sa = &lsopt->u.sockaddr; u 1168 http/ngx_http.c sin6 = &lsopt->u.sockaddr_in6; u 1180 http/ngx_http.c sin = &lsopt->u.sockaddr_in; u 1233 http/ngx_http.c sa = &lsopt->u.sockaddr; u 1257 http/ngx_http.c p = lsopt->u.sockaddr_data + off; u 1263 http/ngx_http.c if (ngx_memcmp(p, addr[i].opt.u.sockaddr_data + off, len) != 0) { u 1729 http/ngx_http.c ls = ngx_create_listening(cf, &addr->opt.u.sockaddr, addr->opt.socklen); u 1802 http/ngx_http.c sin = &addr[i].opt.u.sockaddr_in; u 1863 http/ngx_http.c sin6 = &addr[i].opt.u.sockaddr_in6; u 2529 http/ngx_http_core_module.c sin = &lsopt.u.sockaddr_in; u 2549 http/ngx_http_core_module.c (void) ngx_sock_ntop(&lsopt.u.sockaddr, lsopt.addr, u 3436 http/ngx_http_core_module.c ngx_url_t u; u 3444 http/ngx_http_core_module.c ngx_memzero(&u, sizeof(ngx_url_t)); u 3446 http/ngx_http_core_module.c u.url = value[1]; u 3447 http/ngx_http_core_module.c u.listen = 1; u 3448 http/ngx_http_core_module.c u.default_port = 80; u 3450 http/ngx_http_core_module.c if (ngx_parse_url(cf->pool, &u) != NGX_OK) { u 3451 http/ngx_http_core_module.c if (u.err) { u 3454 http/ngx_http_core_module.c u.err, &u.url); u 3462 http/ngx_http_core_module.c ngx_memcpy(&lsopt.u.sockaddr, u.sockaddr, u.socklen); u 3464 http/ngx_http_core_module.c lsopt.socklen = u.socklen; u 3471 http/ngx_http_core_module.c lsopt.wildcard = u.wildcard; u 3473 http/ngx_http_core_module.c (void) ngx_sock_ntop(&lsopt.u.sockaddr, lsopt.addr, u 3583 http/ngx_http_core_module.c sa = &lsopt.u.sockaddr; u 4364 http/ngx_http_core_module.c ngx_url_t u; u 4373 http/ngx_http_core_module.c ngx_memzero(&u, sizeof(ngx_url_t)); u 4375 http/ngx_http_core_module.c u.host = value[1]; u 4376 http/ngx_http_core_module.c u.port = 53; u 4378 http/ngx_http_core_module.c if (ngx_inet_resolve_host(cf->pool, &u) != NGX_OK) { u 4379 http/ngx_http_core_module.c ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "%V: %s", &u.host, u.err); u 4383 http/ngx_http_core_module.c clcf->resolver = ngx_resolver_create(cf, &u.addrs[0]); u 61 http/ngx_http_core_module.h } u; u 998 http/ngx_http_parse.c u_char c, ch, decoded, *p, *u; u 1015 http/ngx_http_parse.c u = r->uri.data; u 1030 http/ngx_http_parse.c "s:%d in:'%Xd:%c', out:'%c'", state, ch, ch, *u); u 1037 http/ngx_http_parse.c *u++ = ch; u 1058 http/ngx_http_parse.c *u++ = '/'; u 1064 http/ngx_http_parse.c *u++ = ch; u 1076 http/ngx_http_parse.c r->uri_ext = u + 1; u 1077 http/ngx_http_parse.c *u++ = ch; u 1082 http/ngx_http_parse.c *u++ = ch; u 1093 http/ngx_http_parse.c *u++ = ch; u 1105 http/ngx_http_parse.c *u++ = ch; u 1110 http/ngx_http_parse.c *u++ = ch; u 1125 http/ngx_http_parse.c *u++ = ch; u 1136 http/ngx_http_parse.c *u++ = ch; u 1147 http/ngx_http_parse.c u--; u 1151 http/ngx_http_parse.c *u++ = ch; u 1166 http/ngx_http_parse.c *u++ = ch; u 1177 http/ngx_http_parse.c *u++ = ch; u 1188 http/ngx_http_parse.c u -= 5; u 1190 http/ngx_http_parse.c if (u < r->uri.data) { u 1193 http/ngx_http_parse.c if (*u == '/') { u 1194 http/ngx_http_parse.c u++; u 1197 http/ngx_http_parse.c u--; u 1213 http/ngx_http_parse.c *u++ = ch; u 1246 http/ngx_http_parse.c *u++ = ch; u 1264 http/ngx_http_parse.c *u++ = ch; u 1282 http/ngx_http_parse.c r->uri.len = u - r->uri.data; u 1285 http/ngx_http_parse.c r->exten.len = u - r->uri_ext; u 1307 http/ngx_http_parse.c r->uri.len = u - r->uri.data; u 1310 http/ngx_http_parse.c r->exten.len = u - r->uri_ext; u 3089 http/ngx_http_request.c ngx_http_upstream_t *u; u 3121 http/ngx_http_request.c u = sr->upstream; u 3123 http/ngx_http_request.c if (u && u->peer.name) { u 3128 http/ngx_http_request.c if (u->peer.sockaddr && u->peer.sockaddr->sa_family == AF_UNIX) { u 3134 http/ngx_http_request.c &u->schema, u->peer.name, u 3135 http/ngx_http_request.c uri_separator, &u->uri); u 14 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 16 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 28 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 30 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 32 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 34 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 36 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 38 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 40 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 43 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 45 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 47 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 52 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 61 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 64 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 66 http/ngx_http_upstream.c ngx_http_upstream_t *u); u 68 http/ngx_http_upstream.c ngx_http_upstream_t *u, ngx_uint_t ft_type); u 71 http/ngx_http_upstream.c ngx_http_upstream_t *u, ngx_int_t rc); u 134 http/ngx_http_upstream.c ngx_http_upstream_t *u, ngx_connection_t *c); u 373 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 375 http/ngx_http_upstream.c u = r->upstream; u 377 http/ngx_http_upstream.c if (u && u->cleanup) { u 382 http/ngx_http_upstream.c u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t)); u 383 http/ngx_http_upstream.c if (u == NULL) { u 387 http/ngx_http_upstream.c r->upstream = u; u 389 http/ngx_http_upstream.c u->peer.log = r->connection->log; u 390 http/ngx_http_upstream.c u->peer.log_error = NGX_ERROR_ERR; u 392 http/ngx_http_upstream.c u->peer.lock = &r->connection->lock; u 440 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 449 http/ngx_http_upstream.c u = r->upstream; u 453 http/ngx_http_upstream.c if (u->conf->cache) { u 456 http/ngx_http_upstream.c rc = ngx_http_upstream_cache(r, u); u 477 http/ngx_http_upstream.c u->store = (u->conf->store || u->conf->store_lengths); u 479 http/ngx_http_upstream.c if (!u->store && !r->post_action && !u->conf->ignore_client_abort) { u 485 http/ngx_http_upstream.c u->request_bufs = r->request_body->bufs; u 488 http/ngx_http_upstream.c if (u->create_request(r) != NGX_OK) { u 493 http/ngx_http_upstream.c u->peer.local = u->conf->local; u 497 http/ngx_http_upstream.c u->output.alignment = clcf->directio_alignment; u 498 http/ngx_http_upstream.c u->output.pool = r->pool; u 499 http/ngx_http_upstream.c u->output.bufs.num = 1; u 500 http/ngx_http_upstream.c u->output.bufs.size = clcf->client_body_buffer_size; u 501 http/ngx_http_upstream.c u->output.output_filter = ngx_chain_writer; u 502 http/ngx_http_upstream.c u->output.filter_ctx = &u->writer; u 504 http/ngx_http_upstream.c u->writer.pool = r->pool; u 517 http/ngx_http_upstream.c u->state = ngx_array_push(r->upstream_states); u 518 http/ngx_http_upstream.c if (u->state == NULL) { u 519 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 524 http/ngx_http_upstream.c ngx_memzero(u->state, sizeof(ngx_http_upstream_state_t)); u 535 http/ngx_http_upstream.c u->cleanup = &cln->handler; u 537 http/ngx_http_upstream.c if (u->resolved == NULL) { u 539 http/ngx_http_upstream.c uscf = u->conf->upstream; u 543 http/ngx_http_upstream.c if (u->resolved->sockaddr) { u 545 http/ngx_http_upstream.c if (ngx_http_upstream_create_round_robin_peer(r, u->resolved) u 548 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 553 http/ngx_http_upstream.c ngx_http_upstream_connect(r, u); u 558 http/ngx_http_upstream.c host = &u->resolved->host; u 569 http/ngx_http_upstream.c && ((uscf->port == 0 && u->resolved->no_port) u 570 http/ngx_http_upstream.c || uscf->port == u->resolved->port) u 577 http/ngx_http_upstream.c if (u->resolved->port == 0) { u 580 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 589 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 598 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, NGX_HTTP_BAD_GATEWAY); u 608 http/ngx_http_upstream.c u->resolved->ctx = ctx; u 611 http/ngx_http_upstream.c u->resolved->ctx = NULL; u 612 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 623 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 628 http/ngx_http_upstream.c ngx_http_upstream_connect(r, u); u 635 http/ngx_http_upstream.c ngx_http_upstream_cache(ngx_http_request_t *r, ngx_http_upstream_t *u) u 644 http/ngx_http_upstream.c switch (ngx_http_test_predicates(r, u->conf->cache_bypass)) { u 650 http/ngx_http_upstream.c u->cache_status = NGX_HTTP_CACHE_BYPASS; u 657 http/ngx_http_upstream.c if (!(r->method & u->conf->cache_methods)) { u 662 http/ngx_http_upstream.c u->method = ngx_http_core_get_method; u 669 http/ngx_http_upstream.c if (u->create_key(r) != NGX_OK) { u 677 http/ngx_http_upstream.c u->cacheable = 1; u 681 http/ngx_http_upstream.c c->min_uses = u->conf->cache_min_uses; u 682 http/ngx_http_upstream.c c->body_start = u->conf->buffer_size; u 683 http/ngx_http_upstream.c c->file_cache = u->conf->cache->data; u 685 http/ngx_http_upstream.c u->cache_status = NGX_HTTP_CACHE_MISS; u 697 http/ngx_http_upstream.c if (u->conf->cache_use_stale & NGX_HTTP_UPSTREAM_FT_UPDATING) { u 698 http/ngx_http_upstream.c u->cache_status = rc; u 708 http/ngx_http_upstream.c u->cache_status = NGX_HTTP_CACHE_HIT; u 715 http/ngx_http_upstream.c rc = ngx_http_upstream_cache_send(r, u); u 726 http/ngx_http_upstream.c u->buffer.start = NULL; u 727 http/ngx_http_upstream.c u->cache_status = NGX_HTTP_CACHE_EXPIRED; u 733 http/ngx_http_upstream.c if ((size_t) (u->buffer.end - u->buffer.start) < u->conf->buffer_size) { u 734 http/ngx_http_upstream.c u->buffer.start = NULL; u 737 http/ngx_http_upstream.c u->buffer.pos = u->buffer.start + c->header_start; u 738 http/ngx_http_upstream.c u->buffer.last = u->buffer.pos; u 745 http/ngx_http_upstream.c u->cacheable = 0; u 761 http/ngx_http_upstream.c u->cache_status = NGX_HTTP_CACHE_HIT; u 773 http/ngx_http_upstream.c ngx_http_upstream_cache_send(ngx_http_request_t *r, ngx_http_upstream_t *u) u 788 http/ngx_http_upstream.c u->buffer = *c->buf; u 789 http/ngx_http_upstream.c u->buffer.pos += c->header_start; u 791 http/ngx_http_upstream.c ngx_memzero(&u->headers_in, sizeof(ngx_http_upstream_headers_in_t)); u 793 http/ngx_http_upstream.c if (ngx_list_init(&u->headers_in.headers, r->pool, 8, u 800 http/ngx_http_upstream.c rc = u->process_header(r); u 804 http/ngx_http_upstream.c if (ngx_http_upstream_process_headers(r, u) != NGX_OK) { u 829 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 834 http/ngx_http_upstream.c u = r->upstream; u 835 http/ngx_http_upstream.c ur = u->resolved; u 843 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, NGX_HTTP_BAD_GATEWAY); u 867 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 875 http/ngx_http_upstream.c ngx_http_upstream_connect(r, u); u 885 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 890 http/ngx_http_upstream.c u = r->upstream; u 900 http/ngx_http_upstream.c u->write_event_handler(r, u); u 903 http/ngx_http_upstream.c u->read_event_handler(r, u); u 933 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 940 http/ngx_http_upstream.c u = r->upstream; u 948 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 954 http/ngx_http_upstream.c if (!u->cacheable) { u 955 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 977 http/ngx_http_upstream.c if (!u->cacheable && u->peer.connection) { u 981 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 990 http/ngx_http_upstream.c if (u->peer.connection == NULL) { u 991 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1016 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1040 http/ngx_http_upstream.c if (!u->cacheable && u->peer.connection) { u 1044 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1052 http/ngx_http_upstream.c if (u->peer.connection == NULL) { u 1053 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1060 http/ngx_http_upstream.c ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u) u 1070 http/ngx_http_upstream.c if (u->state && u->state->response_sec) { u 1072 http/ngx_http_upstream.c u->state->response_sec = tp->sec - u->state->response_sec; u 1073 http/ngx_http_upstream.c u->state->response_msec = tp->msec - u->state->response_msec; u 1076 http/ngx_http_upstream.c u->state = ngx_array_push(r->upstream_states); u 1077 http/ngx_http_upstream.c if (u->state == NULL) { u 1078 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1083 http/ngx_http_upstream.c ngx_memzero(u->state, sizeof(ngx_http_upstream_state_t)); u 1086 http/ngx_http_upstream.c u->state->response_sec = tp->sec; u 1087 http/ngx_http_upstream.c u->state->response_msec = tp->msec; u 1089 http/ngx_http_upstream.c rc = ngx_event_connect_peer(&u->peer); u 1095 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1100 http/ngx_http_upstream.c u->state->peer = u->peer.name; u 1104 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_NOLIVE); u 1109 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR); u 1115 http/ngx_http_upstream.c c = u->peer.connection; u 1122 http/ngx_http_upstream.c u->write_event_handler = ngx_http_upstream_send_request_handler; u 1123 http/ngx_http_upstream.c u->read_event_handler = ngx_http_upstream_process_header; u 1126 http/ngx_http_upstream.c u->output.sendfile = c->sendfile; u 1135 http/ngx_http_upstream.c u->writer.out = NULL; u 1136 http/ngx_http_upstream.c u->writer.last = &u->writer.out; u 1137 http/ngx_http_upstream.c u->writer.connection = c; u 1138 http/ngx_http_upstream.c u->writer.limit = 0; u 1140 http/ngx_http_upstream.c if (u->request_sent) { u 1141 http/ngx_http_upstream.c if (ngx_http_upstream_reinit(r, u) != NGX_OK) { u 1142 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1158 http/ngx_http_upstream.c u->output.free = ngx_alloc_chain_link(r->pool); u 1159 http/ngx_http_upstream.c if (u->output.free == NULL) { u 1160 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1165 http/ngx_http_upstream.c u->output.free->buf = r->request_body->buf; u 1166 http/ngx_http_upstream.c u->output.free->next = NULL; u 1167 http/ngx_http_upstream.c u->output.allocated = 1; u 1171 http/ngx_http_upstream.c r->request_body->buf->tag = u->output.tag; u 1174 http/ngx_http_upstream.c u->request_sent = 0; u 1177 http/ngx_http_upstream.c ngx_add_timer(c->write, u->conf->connect_timeout); u 1183 http/ngx_http_upstream.c if (u->ssl && c->ssl == NULL) { u 1184 http/ngx_http_upstream.c ngx_http_upstream_ssl_init_connection(r, u, c); u 1190 http/ngx_http_upstream.c ngx_http_upstream_send_request(r, u); u 1198 http/ngx_http_upstream.c ngx_http_upstream_t *u, ngx_connection_t *c) u 1202 http/ngx_http_upstream.c if (ngx_ssl_create_connection(u->conf->ssl, c, u 1206 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1212 http/ngx_http_upstream.c u->output.sendfile = 0; u 1214 http/ngx_http_upstream.c if (u->conf->ssl_session_reuse) { u 1215 http/ngx_http_upstream.c if (u->peer.set_session(&u->peer, u->peer.data) != NGX_OK) { u 1216 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1239 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 1242 http/ngx_http_upstream.c u = r->upstream; u 1246 http/ngx_http_upstream.c if (u->conf->ssl_session_reuse) { u 1247 http/ngx_http_upstream.c u->peer.save_session(&u->peer, u->peer.data); u 1253 http/ngx_http_upstream.c ngx_http_upstream_send_request(r, u); u 1258 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR); u 1266 http/ngx_http_upstream.c ngx_http_upstream_reinit(ngx_http_request_t *r, ngx_http_upstream_t *u) u 1270 http/ngx_http_upstream.c if (u->reinit_request(r) != NGX_OK) { u 1274 http/ngx_http_upstream.c ngx_memzero(&u->headers_in, sizeof(ngx_http_upstream_headers_in_t)); u 1276 http/ngx_http_upstream.c if (ngx_list_init(&u->headers_in.headers, r->pool, 8, u 1285 http/ngx_http_upstream.c for (cl = u->request_bufs; cl; cl = cl->next) { u 1293 http/ngx_http_upstream.c && r != r->main && u->output.buf) u 1295 http/ngx_http_upstream.c u->output.free = ngx_alloc_chain_link(r->pool); u 1296 http/ngx_http_upstream.c if (u->output.free == NULL) { u 1300 http/ngx_http_upstream.c u->output.free->buf = u->output.buf; u 1301 http/ngx_http_upstream.c u->output.free->next = NULL; u 1303 http/ngx_http_upstream.c u->output.buf->pos = u->output.buf->start; u 1304 http/ngx_http_upstream.c u->output.buf->last = u->output.buf->start; u 1307 http/ngx_http_upstream.c u->output.buf = NULL; u 1308 http/ngx_http_upstream.c u->output.in = NULL; u 1309 http/ngx_http_upstream.c u->output.busy = NULL; u 1313 http/ngx_http_upstream.c u->buffer.pos = u->buffer.start; u 1318 http/ngx_http_upstream.c u->buffer.pos += r->cache->header_start; u 1323 http/ngx_http_upstream.c u->buffer.last = u->buffer.pos; u 1330 http/ngx_http_upstream.c ngx_http_upstream_send_request(ngx_http_request_t *r, ngx_http_upstream_t *u) u 1335 http/ngx_http_upstream.c c = u->peer.connection; u 1340 http/ngx_http_upstream.c if (!u->request_sent && ngx_http_upstream_test_connect(c) != NGX_OK) { u 1341 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR); u 1347 http/ngx_http_upstream.c rc = ngx_output_chain(&u->output, u->request_sent ? NULL : u->request_bufs); u 1349 http/ngx_http_upstream.c u->request_sent = 1; u 1352 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR); u 1361 http/ngx_http_upstream.c ngx_add_timer(c->write, u->conf->send_timeout); u 1363 http/ngx_http_upstream.c if (ngx_handle_write_event(c->write, u->conf->send_lowat) != NGX_OK) { u 1364 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1378 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1386 http/ngx_http_upstream.c ngx_add_timer(c->read, u->conf->read_timeout); u 1400 http/ngx_http_upstream.c ngx_http_upstream_process_header(r, u); u 1405 http/ngx_http_upstream.c u->write_event_handler = ngx_http_upstream_dummy_handler; u 1408 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1417 http/ngx_http_upstream.c ngx_http_upstream_t *u) u 1421 http/ngx_http_upstream.c c = u->peer.connection; u 1427 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_TIMEOUT); u 1433 http/ngx_http_upstream.c if (u->ssl && c->ssl == NULL) { u 1434 http/ngx_http_upstream.c ngx_http_upstream_ssl_init_connection(r, u, c); u 1440 http/ngx_http_upstream.c if (u->header_sent) { u 1441 http/ngx_http_upstream.c u->write_event_handler = ngx_http_upstream_dummy_handler; u 1448 http/ngx_http_upstream.c ngx_http_upstream_send_request(r, u); u 1453 http/ngx_http_upstream.c ngx_http_upstream_process_header(ngx_http_request_t *r, ngx_http_upstream_t *u) u 1459 http/ngx_http_upstream.c c = u->peer.connection; u 1467 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_TIMEOUT); u 1471 http/ngx_http_upstream.c if (!u->request_sent && ngx_http_upstream_test_connect(c) != NGX_OK) { u 1472 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR); u 1476 http/ngx_http_upstream.c if (u->buffer.start == NULL) { u 1477 http/ngx_http_upstream.c u->buffer.start = ngx_palloc(r->pool, u->conf->buffer_size); u 1478 http/ngx_http_upstream.c if (u->buffer.start == NULL) { u 1479 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1484 http/ngx_http_upstream.c u->buffer.pos = u->buffer.start; u 1485 http/ngx_http_upstream.c u->buffer.last = u->buffer.start; u 1486 http/ngx_http_upstream.c u->buffer.end = u->buffer.start + u->conf->buffer_size; u 1487 http/ngx_http_upstream.c u->buffer.temporary = 1; u 1489 http/ngx_http_upstream.c u->buffer.tag = u->output.tag; u 1491 http/ngx_http_upstream.c if (ngx_list_init(&u->headers_in.headers, r->pool, 8, u 1495 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1503 http/ngx_http_upstream.c u->buffer.pos += r->cache->header_start; u 1504 http/ngx_http_upstream.c u->buffer.last = u->buffer.pos; u 1511 http/ngx_http_upstream.c n = c->recv(c, u->buffer.last, u->buffer.end - u->buffer.last); u 1515 http/ngx_http_upstream.c ngx_add_timer(rev, u->read_timeout); u 1519 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1533 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR); u 1537 http/ngx_http_upstream.c u->buffer.last += n; u 1540 http/ngx_http_upstream.c u->valid_header_in = 0; u 1542 http/ngx_http_upstream.c u->peer.cached = 0; u 1545 http/ngx_http_upstream.c rc = u->process_header(r); u 1549 http/ngx_http_upstream.c if (u->buffer.pos == u->buffer.end) { u 1553 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, u 1565 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_INVALID_HEADER); u 1570 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1577 http/ngx_http_upstream.c if (u->headers_in.status_n > NGX_HTTP_SPECIAL_RESPONSE) { u 1580 http/ngx_http_upstream.c u->buffer.last = u->buffer.pos; u 1583 http/ngx_http_upstream.c if (ngx_http_upstream_test_next(r, u) == NGX_OK) { u 1587 http/ngx_http_upstream.c if (ngx_http_upstream_intercept_errors(r, u) == NGX_OK) { u 1592 http/ngx_http_upstream.c if (ngx_http_upstream_process_headers(r, u) != NGX_OK) { u 1597 http/ngx_http_upstream.c ngx_http_upstream_send_response(r, u); u 1603 http/ngx_http_upstream.c if (u->input_filter == NULL) { u 1604 http/ngx_http_upstream.c u->input_filter_init = ngx_http_upstream_non_buffered_filter_init; u 1605 http/ngx_http_upstream.c u->input_filter = ngx_http_upstream_non_buffered_filter; u 1606 http/ngx_http_upstream.c u->input_filter_ctx = r; u 1609 http/ngx_http_upstream.c if (u->input_filter_init(u->input_filter_ctx) == NGX_ERROR) { u 1610 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1615 http/ngx_http_upstream.c n = u->buffer.last - u->buffer.pos; u 1618 http/ngx_http_upstream.c u->buffer.last -= n; u 1620 http/ngx_http_upstream.c u->state->response_length += n; u 1622 http/ngx_http_upstream.c if (u->input_filter(u->input_filter_ctx, n) == NGX_ERROR) { u 1623 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, NGX_ERROR); u 1627 http/ngx_http_upstream.c if (u->length == 0) { u 1628 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 1633 http/ngx_http_upstream.c u->read_event_handler = ngx_http_upstream_process_body_in_memory; u 1635 http/ngx_http_upstream.c ngx_http_upstream_process_body_in_memory(r, u); u 1640 http/ngx_http_upstream.c ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u) u 1645 http/ngx_http_upstream.c status = u->headers_in.status_n; u 1653 http/ngx_http_upstream.c if (u->peer.tries > 1 && (u->conf->next_upstream & un->mask)) { u 1654 http/ngx_http_upstream.c ngx_http_upstream_next(r, u, un->mask); u 1660 http/ngx_http_upstream.c if (u->cache_status == NGX_HTTP_CACHE_EXPIRED u 1661 http/ngx_http_upstream.c && (u->conf->cache_use_stale & un->mask)) u 1665 http/ngx_http_upstream.c rc = u->reinit_request(r); u 1668 http/ngx_http_upstream.c u->cache_status = NGX_HTTP_CACHE_STALE; u 1669 http/ngx_http_upstream.c rc = ngx_http_upstream_cache_send(r, u); u 1672 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, rc); u 1685 http/ngx_http_upstream.c ngx_http_upstream_t *u) u 1693 http/ngx_http_upstream.c status = u->headers_in.status_n; u 1695 http/ngx_http_upstream.c if (status == NGX_HTTP_NOT_FOUND && u->conf->intercept_404) { u 1696 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, NGX_HTTP_NOT_FOUND); u 1700 http/ngx_http_upstream.c if (!u->conf->intercept_errors) { u 1716 http/ngx_http_upstream.c && u->headers_in.www_authenticate) u 1721 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1726 http/ngx_http_upstream.c *h = *u->headers_in.www_authenticate; u 1736 http/ngx_http_upstream.c valid = ngx_http_file_cache_valid(u->conf->cache_valid, status); u 1743 http/ngx_http_upstream.c ngx_http_file_cache_free(r->cache, u->pipe->temp_file); u 1746 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, status); u 1801 http/ngx_http_upstream.c ngx_http_upstream_process_headers(ngx_http_request_t *r, ngx_http_upstream_t *u) u 1812 http/ngx_http_upstream.c if (u->headers_in.x_accel_redirect u 1813 http/ngx_http_upstream.c && !(u->conf->ignore_headers & NGX_HTTP_UPSTREAM_IGN_XA_REDIRECT)) u 1815 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, NGX_DECLINED); u 1817 http/ngx_http_upstream.c part = &u->headers_in.headers.part; u 1844 http/ngx_http_upstream.c uri = &u->headers_in.x_accel_redirect->value; u 1864 http/ngx_http_upstream.c part = &u->headers_in.headers.part; u 1879 http/ngx_http_upstream.c if (ngx_hash_find(&u->conf->hide_headers_hash, h[i].hash, u 1890 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1899 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 1913 http/ngx_http_upstream.c r->headers_out.status = u->headers_in.status_n; u 1914 http/ngx_http_upstream.c r->headers_out.status_line = u->headers_in.status_line; u 1916 http/ngx_http_upstream.c u->headers_in.content_length_n = r->headers_out.content_length_n; u 1919 http/ngx_http_upstream.c u->length = (size_t) r->headers_out.content_length_n; u 1922 http/ngx_http_upstream.c u->length = NGX_MAX_SIZE_T_VALUE; u 1931 http/ngx_http_upstream.c ngx_http_upstream_t *u) u 1939 http/ngx_http_upstream.c c = u->peer.connection; u 1947 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, NGX_ETIMEDOUT); u 1951 http/ngx_http_upstream.c b = &u->buffer; u 1960 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, NGX_ERROR); u 1971 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, n); u 1975 http/ngx_http_upstream.c u->state->response_length += n; u 1977 http/ngx_http_upstream.c if (u->input_filter(u->input_filter_ctx, n) == NGX_ERROR) { u 1978 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, NGX_ERROR); u 1988 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, NGX_ERROR); u 1993 http/ngx_http_upstream.c ngx_add_timer(rev, u->conf->read_timeout); u 2002 http/ngx_http_upstream.c ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u) u 2014 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, rc); u 2022 http/ngx_http_upstream.c if (u->cacheable || u->store) { u 2034 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, rc); u 2039 http/ngx_http_upstream.c u->header_sent = 1; u 2048 http/ngx_http_upstream.c if (!u->buffering) { u 2050 http/ngx_http_upstream.c if (u->input_filter == NULL) { u 2051 http/ngx_http_upstream.c u->input_filter_init = ngx_http_upstream_non_buffered_filter_init; u 2052 http/ngx_http_upstream.c u->input_filter = ngx_http_upstream_non_buffered_filter; u 2053 http/ngx_http_upstream.c u->input_filter_ctx = r; u 2056 http/ngx_http_upstream.c u->read_event_handler = ngx_http_upstream_process_non_buffered_upstream; u 2062 http/ngx_http_upstream.c if (u->input_filter_init(u->input_filter_ctx) == NGX_ERROR) { u 2063 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2077 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2084 http/ngx_http_upstream.c n = u->buffer.last - u->buffer.pos; u 2087 http/ngx_http_upstream.c u->buffer.last = u->buffer.pos; u 2089 http/ngx_http_upstream.c u->state->response_length += n; u 2091 http/ngx_http_upstream.c if (u->input_filter(u->input_filter_ctx, n) == NGX_ERROR) { u 2092 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2099 http/ngx_http_upstream.c u->buffer.pos = u->buffer.start; u 2100 http/ngx_http_upstream.c u->buffer.last = u->buffer.start; u 2103 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2107 http/ngx_http_upstream.c if (u->peer.connection->read->ready) { u 2108 http/ngx_http_upstream.c ngx_http_upstream_process_non_buffered_upstream(r, u); u 2124 http/ngx_http_upstream.c switch (ngx_http_test_predicates(r, u->conf->no_cache)) { u 2127 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2131 http/ngx_http_upstream.c u->cacheable = 0; u 2136 http/ngx_http_upstream.c if (u->cache_status == NGX_HTTP_CACHE_BYPASS) { u 2139 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2143 http/ngx_http_upstream.c if (u->create_key(r) != NGX_OK) { u 2144 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2150 http/ngx_http_upstream.c r->cache->min_uses = u->conf->cache_min_uses; u 2151 http/ngx_http_upstream.c r->cache->body_start = u->conf->buffer_size; u 2152 http/ngx_http_upstream.c r->cache->file_cache = u->conf->cache->data; u 2155 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2159 http/ngx_http_upstream.c u->cacheable = 1; u 2165 http/ngx_http_upstream.c if (u->cacheable) { u 2173 http/ngx_http_upstream.c valid = ngx_http_file_cache_valid(u->conf->cache_valid, u 2174 http/ngx_http_upstream.c u->headers_in.status_n); u 2183 http/ngx_http_upstream.c r->cache->body_start = (u_short) (u->buffer.pos - u->buffer.start); u 2185 http/ngx_http_upstream.c ngx_http_file_cache_set_header(r, u->buffer.start); u 2188 http/ngx_http_upstream.c u->cacheable = 0; u 2194 http/ngx_http_upstream.c "http cacheable: %d", u->cacheable); u 2196 http/ngx_http_upstream.c if (u->cacheable == 0 && r->cache) { u 2197 http/ngx_http_upstream.c ngx_http_file_cache_free(r->cache, u->pipe->temp_file); u 2202 http/ngx_http_upstream.c p = u->pipe; u 2206 http/ngx_http_upstream.c p->tag = u->output.tag; u 2207 http/ngx_http_upstream.c p->bufs = u->conf->bufs; u 2208 http/ngx_http_upstream.c p->busy_size = u->conf->busy_buffers_size; u 2209 http/ngx_http_upstream.c p->upstream = u->peer.connection; u 2214 http/ngx_http_upstream.c p->cacheable = u->cacheable || u->store; u 2218 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2224 http/ngx_http_upstream.c p->temp_file->path = u->conf->temp_path; u 2236 http/ngx_http_upstream.c p->max_temp_file_size = u->conf->max_temp_file_size; u 2237 http/ngx_http_upstream.c p->temp_file_write_size = u->conf->temp_file_write_size; u 2241 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2245 http/ngx_http_upstream.c p->preread_bufs->buf = &u->buffer; u 2247 http/ngx_http_upstream.c u->buffer.recycled = 1; u 2249 http/ngx_http_upstream.c p->preread_size = u->buffer.last - u->buffer.pos; u 2251 http/ngx_http_upstream.c if (u->cacheable) { u 2255 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2259 http/ngx_http_upstream.c p->buf_to_file->pos = u->buffer.start; u 2260 http/ngx_http_upstream.c p->buf_to_file->last = u->buffer.pos; u 2276 http/ngx_http_upstream.c u->buffer.last = u->buffer.pos; u 2278 http/ngx_http_upstream.c if (u->conf->cyclic_temp_file) { u 2293 http/ngx_http_upstream.c p->read_timeout = u->conf->read_timeout; u 2297 http/ngx_http_upstream.c u->read_event_handler = ngx_http_upstream_process_upstream; u 2300 http/ngx_http_upstream.c ngx_http_upstream_process_upstream(r, u); u 2309 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 2312 http/ngx_http_upstream.c u = r->upstream; u 2323 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2333 http/ngx_http_upstream.c ngx_http_upstream_t *u) u 2337 http/ngx_http_upstream.c c = u->peer.connection; u 2346 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2363 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 2366 http/ngx_http_upstream.c u = r->upstream; u 2368 http/ngx_http_upstream.c upstream = u->peer.connection; u 2370 http/ngx_http_upstream.c b = &u->buffer; u 2372 http/ngx_http_upstream.c do_write = do_write || u->length == 0; u 2378 http/ngx_http_upstream.c if (u->out_bufs || u->busy_bufs) { u 2379 http/ngx_http_upstream.c rc = ngx_http_output_filter(r, u->out_bufs); u 2382 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2386 http/ngx_http_upstream.c ngx_chain_update_chains(&u->free_bufs, &u->busy_bufs, u 2387 http/ngx_http_upstream.c &u->out_bufs, u->output.tag); u 2390 http/ngx_http_upstream.c if (u->busy_bufs == NULL) { u 2392 http/ngx_http_upstream.c if (u->length == 0 u 2396 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2407 http/ngx_http_upstream.c if (size > u->length) { u 2408 http/ngx_http_upstream.c size = u->length; u 2420 http/ngx_http_upstream.c u->state->response_length += n; u 2422 http/ngx_http_upstream.c if (u->input_filter(u->input_filter_ctx, n) == NGX_ERROR) { u 2423 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2442 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2455 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2460 http/ngx_http_upstream.c ngx_add_timer(upstream->read, u->conf->read_timeout); u 2482 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 2484 http/ngx_http_upstream.c u = r->upstream; u 2486 http/ngx_http_upstream.c for (cl = u->out_bufs, ll = &u->out_bufs; cl; cl = cl->next) { u 2490 http/ngx_http_upstream.c cl = ngx_chain_get_free_buf(r->pool, &u->free_bufs); u 2500 http/ngx_http_upstream.c b = &u->buffer; u 2505 http/ngx_http_upstream.c cl->buf->tag = u->output.tag; u 2507 http/ngx_http_upstream.c if (u->length == NGX_MAX_SIZE_T_VALUE) { u 2511 http/ngx_http_upstream.c u->length -= bytes; u 2523 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 2526 http/ngx_http_upstream.c u = r->upstream; u 2527 http/ngx_http_upstream.c p = u->pipe; u 2546 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2553 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2571 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2578 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2589 http/ngx_http_upstream.c ngx_http_upstream_t *u) u 2593 http/ngx_http_upstream.c c = u->peer.connection; u 2601 http/ngx_http_upstream.c u->pipe->upstream_error = 1; u 2605 http/ngx_http_upstream.c if (ngx_event_pipe(u->pipe, 0) == NGX_ABORT) { u 2606 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2621 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 2623 http/ngx_http_upstream.c u = r->upstream; u 2624 http/ngx_http_upstream.c p = u->pipe; u 2626 http/ngx_http_upstream.c if (u->peer.connection) { u 2628 http/ngx_http_upstream.c if (u->store) { u 2632 http/ngx_http_upstream.c tf = u->pipe->temp_file; u 2636 http/ngx_http_upstream.c if (u->headers_in.status_n == NGX_HTTP_OK u 2637 http/ngx_http_upstream.c && (u->headers_in.content_length_n == -1 u 2638 http/ngx_http_upstream.c || (u->headers_in.content_length_n == tf->offset))) u 2640 http/ngx_http_upstream.c ngx_http_upstream_store(r, u); u 2653 http/ngx_http_upstream.c u->pipe->temp_file->file.name.data); u 2660 http/ngx_http_upstream.c if (u->cacheable) { u 2663 http/ngx_http_upstream.c ngx_http_file_cache_update(r, u->pipe->temp_file); u 2669 http/ngx_http_upstream.c ngx_http_file_cache_update(r, u->pipe->temp_file); u 2672 http/ngx_http_upstream.c ngx_http_file_cache_free(r->cache, u->pipe->temp_file); u 2682 http/ngx_http_upstream.c ngx_http_busy_unlock(u->conf->busy_lock, &u->busy_lock); u 2684 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2693 http/ngx_http_upstream.c if (!u->cacheable && !u->store && u->peer.connection) { u 2694 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, 0); u 2701 http/ngx_http_upstream.c ngx_http_upstream_store(ngx_http_request_t *r, ngx_http_upstream_t *u) u 2709 http/ngx_http_upstream.c tf = u->pipe->temp_file; u 2722 http/ngx_http_upstream.c tf->path = u->conf->temp_path; u 2733 http/ngx_http_upstream.c u->pipe->temp_file = tf; u 2736 http/ngx_http_upstream.c ext.access = u->conf->store_access; u 2737 http/ngx_http_upstream.c ext.path_access = u->conf->store_access; u 2743 http/ngx_http_upstream.c if (u->headers_in.last_modified) { u 2745 http/ngx_http_upstream.c lm = ngx_http_parse_time(u->headers_in.last_modified->value.data, u 2746 http/ngx_http_upstream.c u->headers_in.last_modified->value.len); u 2754 http/ngx_http_upstream.c if (u->conf->store_lengths == NULL) { u 2759 http/ngx_http_upstream.c if (ngx_http_script_run(r, &path, u->conf->store_lengths->elts, 0, u 2760 http/ngx_http_upstream.c u->conf->store_values->elts) u 2778 http/ngx_http_upstream.c ngx_http_upstream_dummy_handler(ngx_http_request_t *r, ngx_http_upstream_t *u) u 2786 http/ngx_http_upstream.c ngx_http_upstream_next(ngx_http_request_t *r, ngx_http_upstream_t *u, u 2795 http/ngx_http_upstream.c ngx_http_busy_unlock(u->conf->busy_lock, &u->busy_lock); u 2805 http/ngx_http_upstream.c u->peer.free(&u->peer, u->peer.data, state); u 2813 http/ngx_http_upstream.c if (u->peer.cached && ft_type == NGX_HTTP_UPSTREAM_FT_ERROR) { u 2842 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, u 2848 http/ngx_http_upstream.c u->state->status = status; u 2850 http/ngx_http_upstream.c if (u->peer.tries == 0 || !(u->conf->next_upstream & ft_type)) { u 2854 http/ngx_http_upstream.c if (u->cache_status == NGX_HTTP_CACHE_EXPIRED u 2855 http/ngx_http_upstream.c && (u->conf->cache_use_stale & ft_type)) u 2859 http/ngx_http_upstream.c rc = u->reinit_request(r); u 2862 http/ngx_http_upstream.c u->cache_status = NGX_HTTP_CACHE_STALE; u 2863 http/ngx_http_upstream.c rc = ngx_http_upstream_cache_send(r, u); u 2866 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, rc); u 2871 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, status); u 2876 http/ngx_http_upstream.c if (u->peer.connection) { u 2879 http/ngx_http_upstream.c u->peer.connection->fd); u 2882 http/ngx_http_upstream.c if (u->peer.connection->ssl) { u 2883 http/ngx_http_upstream.c u->peer.connection->ssl->no_wait_shutdown = 1; u 2884 http/ngx_http_upstream.c u->peer.connection->ssl->no_send_shutdown = 1; u 2886 http/ngx_http_upstream.c (void) ngx_ssl_shutdown(u->peer.connection); u 2890 http/ngx_http_upstream.c ngx_close_connection(u->peer.connection); u 2894 http/ngx_http_upstream.c if (u->conf->busy_lock && !u->busy_locked) { u 2900 http/ngx_http_upstream.c ngx_http_upstream_connect(r, u); u 2909 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 2914 http/ngx_http_upstream.c u = r->upstream; u 2916 http/ngx_http_upstream.c if (u->resolved && u->resolved->ctx) { u 2917 http/ngx_http_upstream.c ngx_resolve_name_done(u->resolved->ctx); u 2918 http/ngx_http_upstream.c u->resolved->ctx = NULL; u 2921 http/ngx_http_upstream.c ngx_http_upstream_finalize_request(r, u, NGX_DONE); u 2927 http/ngx_http_upstream.c ngx_http_upstream_t *u, ngx_int_t rc) u 2934 http/ngx_http_upstream.c if (u->cleanup) { u 2935 http/ngx_http_upstream.c *u->cleanup = NULL; u 2936 http/ngx_http_upstream.c u->cleanup = NULL; u 2939 http/ngx_http_upstream.c if (u->resolved && u->resolved->ctx) { u 2940 http/ngx_http_upstream.c ngx_resolve_name_done(u->resolved->ctx); u 2941 http/ngx_http_upstream.c u->resolved->ctx = NULL; u 2944 http/ngx_http_upstream.c if (u->state && u->state->response_sec) { u 2946 http/ngx_http_upstream.c u->state->response_sec = tp->sec - u->state->response_sec; u 2947 http/ngx_http_upstream.c u->state->response_msec = tp->msec - u->state->response_msec; u 2949 http/ngx_http_upstream.c if (u->pipe) { u 2950 http/ngx_http_upstream.c u->state->response_length = u->pipe->read_length; u 2954 http/ngx_http_upstream.c u->finalize_request(r, rc); u 2956 http/ngx_http_upstream.c if (u->peer.free) { u 2957 http/ngx_http_upstream.c u->peer.free(&u->peer, u->peer.data, 0); u 2960 http/ngx_http_upstream.c if (u->peer.connection) { u 2966 http/ngx_http_upstream.c if (u->peer.connection->ssl) { u 2974 http/ngx_http_upstream.c u->peer.connection->ssl->no_wait_shutdown = 1; u 2976 http/ngx_http_upstream.c (void) ngx_ssl_shutdown(u->peer.connection); u 2982 http/ngx_http_upstream.c u->peer.connection->fd); u 2984 http/ngx_http_upstream.c ngx_close_connection(u->peer.connection); u 2987 http/ngx_http_upstream.c u->peer.connection = NULL; u 2989 http/ngx_http_upstream.c if (u->pipe && u->pipe->temp_file) { u 2992 http/ngx_http_upstream.c u->pipe->temp_file->file.fd); u 2997 http/ngx_http_upstream.c if (u->cacheable && r->cache) { u 3002 http/ngx_http_upstream.c valid = ngx_http_file_cache_valid(u->conf->cache_valid, rc); u 3010 http/ngx_http_upstream.c ngx_http_file_cache_free(r->cache, u->pipe->temp_file); u 3015 http/ngx_http_upstream.c if (u->header_sent u 3064 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 3066 http/ngx_http_upstream.c u = r->upstream; u 3068 http/ngx_http_upstream.c if (!(u->conf->ignore_headers & NGX_HTTP_UPSTREAM_IGN_SET_COOKIE)) { u 3069 http/ngx_http_upstream.c u->cacheable = 0; u 3083 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 3085 http/ngx_http_upstream.c u = r->upstream; u 3086 http/ngx_http_upstream.c pa = &u->headers_in.cache_control; u 3107 http/ngx_http_upstream.c if (u->conf->ignore_headers & NGX_HTTP_UPSTREAM_IGN_CACHE_CONTROL) { u 3126 http/ngx_http_upstream.c u->cacheable = 0; u 3148 http/ngx_http_upstream.c u->cacheable = 0; u 3153 http/ngx_http_upstream.c u->cacheable = 0; u 3169 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 3171 http/ngx_http_upstream.c u = r->upstream; u 3172 http/ngx_http_upstream.c u->headers_in.expires = h; u 3178 http/ngx_http_upstream.c if (u->conf->ignore_headers & NGX_HTTP_UPSTREAM_IGN_EXPIRES) { u 3193 http/ngx_http_upstream.c u->cacheable = 0; u 3209 http/ngx_http_upstream.c ngx_http_upstream_t *u; u 3211 http/ngx_http_upstream.c u = r->upstream; u 3212 http/ngx_http_upstream.c u->headers_in.x_accel_expires = h; u 3220 http/ngx_http_upstream.c if (u->conf->ignore_headers & NGX_HTTP_UPSTREAM_IGN_XA_EXPIRES) { u 3236 http/ngx_http_upstream.c u->cacheable = 0; u 3949 http/ngx_http_upstream.c ngx_url_t u; u 3956 http/ngx_http_upstream.c ngx_memzero(&u, sizeof(ngx_url_t)); u 3959 http/ngx_http_upstream.c u.host = value[1]; u 3960 http/ngx_http_upstream.c u.no_resolve = 1; u 3962 http/ngx_http_upstream.c uscf = ngx_http_upstream_add(cf, &u, NGX_HTTP_UPSTREAM_CREATE u 4058 http/ngx_http_upstream.c ngx_url_t u; u 4080 http/ngx_http_upstream.c ngx_memzero(&u, sizeof(ngx_url_t)); u 4082 http/ngx_http_upstream.c u.url = value[1]; u 4083 http/ngx_http_upstream.c u.default_port = 80; u 4085 http/ngx_http_upstream.c if (ngx_parse_url(cf->pool, &u) != NGX_OK) { u 4086 http/ngx_http_upstream.c if (u.err) { u 4088 http/ngx_http_upstream.c "%s in upstream \"%V\"", u.err, &u.url); u 4173 http/ngx_http_upstream.c us->addrs = u.addrs; u 4174 http/ngx_http_upstream.c us->naddrs = u.naddrs; u 4191 http/ngx_http_upstream.c ngx_http_upstream_add(ngx_conf_t *cf, ngx_url_t *u, ngx_uint_t flags) u 4200 http/ngx_http_upstream.c if (ngx_parse_url(cf->pool, u) != NGX_OK) { u 4201 http/ngx_http_upstream.c if (u->err) { u 4203 http/ngx_http_upstream.c "%s in upstream \"%V\"", u->err, &u->url); u 4216 http/ngx_http_upstream.c if (uscfp[i]->host.len != u->host.len u 4217 http/ngx_http_upstream.c || ngx_strncasecmp(uscfp[i]->host.data, u->host.data, u->host.len) u 4227 http/ngx_http_upstream.c "duplicate upstream \"%V\"", &u->host); u 4231 http/ngx_http_upstream.c if ((uscfp[i]->flags & NGX_HTTP_UPSTREAM_CREATE) && u->port) { u 4234 http/ngx_http_upstream.c &u->host, u->port); u 4241 http/ngx_http_upstream.c &u->host, uscfp[i]->port, u 4246 http/ngx_http_upstream.c if (uscfp[i]->port != u->port) { u 4250 http/ngx_http_upstream.c if (uscfp[i]->default_port && u->default_port u 4251 http/ngx_http_upstream.c && uscfp[i]->default_port != u->default_port) u 4265 http/ngx_http_upstream.c uscf->host = u->host; u 4268 http/ngx_http_upstream.c uscf->port = u->port; u 4269 http/ngx_http_upstream.c uscf->default_port = u->default_port; u 4271 http/ngx_http_upstream.c if (u->naddrs == 1) { u 4285 http/ngx_http_upstream.c us->addrs = u->addrs; u 4286 http/ngx_http_upstream.c us->naddrs = u->naddrs; u 246 http/ngx_http_upstream.h ngx_http_upstream_t *u); u 328 http/ngx_http_upstream.h ngx_url_t *u, ngx_uint_t flags); u 22 http/ngx_http_upstream_round_robin.c ngx_url_t u; u 144 http/ngx_http_upstream_round_robin.c ngx_memzero(&u, sizeof(ngx_url_t)); u 146 http/ngx_http_upstream_round_robin.c u.host = us->host; u 147 http/ngx_http_upstream_round_robin.c u.port = (in_port_t) (us->port ? us->port : us->default_port); u 149 http/ngx_http_upstream_round_robin.c if (ngx_inet_resolve_host(cf->pool, &u) != NGX_OK) { u 150 http/ngx_http_upstream_round_robin.c if (u.err) { u 153 http/ngx_http_upstream_round_robin.c u.err, &us->host, us->file_name, us->line); u 159 http/ngx_http_upstream_round_robin.c n = u.naddrs; u 171 http/ngx_http_upstream_round_robin.c for (i = 0; i < u.naddrs; i++) { u 172 http/ngx_http_upstream_round_robin.c peers->peer[i].sockaddr = u.addrs[i].sockaddr; u 173 http/ngx_http_upstream_round_robin.c peers->peer[i].socklen = u.addrs[i].socklen; u 174 http/ngx_http_upstream_round_robin.c peers->peer[i].name = u.addrs[i].name; u 1381 mail/ngx_mail_auth_http_module.c ngx_url_t u; u 1385 mail/ngx_mail_auth_http_module.c ngx_memzero(&u, sizeof(ngx_url_t)); u 1387 mail/ngx_mail_auth_http_module.c u.url = value[1]; u 1388 mail/ngx_mail_auth_http_module.c u.default_port = 80; u 1389 mail/ngx_mail_auth_http_module.c u.uri_part = 1; u 1390 mail/ngx_mail_auth_http_module.c u.one_addr = 1; u 1392 mail/ngx_mail_auth_http_module.c if (ngx_strncmp(u.url.data, "http://", 7) == 0) { u 1393 mail/ngx_mail_auth_http_module.c u.url.len -= 7; u 1394 mail/ngx_mail_auth_http_module.c u.url.data += 7; u 1397 mail/ngx_mail_auth_http_module.c if (ngx_parse_url(cf->pool, &u) != NGX_OK) { u 1398 mail/ngx_mail_auth_http_module.c if (u.err) { u 1400 mail/ngx_mail_auth_http_module.c "%s in auth_http \"%V\"", u.err, &u.url); u 1406 mail/ngx_mail_auth_http_module.c ahcf->peer = u.addrs; u 1408 mail/ngx_mail_auth_http_module.c if (u.family != AF_UNIX) { u 1409 mail/ngx_mail_auth_http_module.c ahcf->host_header = u.host; u 1415 mail/ngx_mail_auth_http_module.c ahcf->uri = u.uri; u 285 mail/ngx_mail_core_module.c ngx_url_t u; u 298 mail/ngx_mail_core_module.c ngx_memzero(&u, sizeof(ngx_url_t)); u 300 mail/ngx_mail_core_module.c u.url = value[1]; u 301 mail/ngx_mail_core_module.c u.listen = 1; u 303 mail/ngx_mail_core_module.c if (ngx_parse_url(cf->pool, &u) != NGX_OK) { u 304 mail/ngx_mail_core_module.c if (u.err) { u 307 mail/ngx_mail_core_module.c u.err, &u.url); u 321 mail/ngx_mail_core_module.c if (sa->sa_family != u.family) { u 344 mail/ngx_mail_core_module.c if (ngx_memcmp(ls[i].sockaddr + off, u.sockaddr + off, len) != 0) { u 348 mail/ngx_mail_core_module.c if (port != u.port) { u 353 mail/ngx_mail_core_module.c "duplicate \"%V\" address and port pair", &u.url); u 364 mail/ngx_mail_core_module.c ngx_memcpy(ls->sockaddr, u.sockaddr, u.socklen); u 366 mail/ngx_mail_core_module.c ls->socklen = u.socklen; u 367 mail/ngx_mail_core_module.c ls->wildcard = u.wildcard; u 382 mail/ngx_mail_core_module.c if (module->protocol->port[i] == u.port) { u 496 mail/ngx_mail_core_module.c ngx_url_t u; u 510 mail/ngx_mail_core_module.c ngx_memzero(&u, sizeof(ngx_url_t)); u 512 mail/ngx_mail_core_module.c u.host = value[1]; u 513 mail/ngx_mail_core_module.c u.port = 53; u 515 mail/ngx_mail_core_module.c if (ngx_inet_resolve_host(cf->pool, &u) != NGX_OK) { u 516 mail/ngx_mail_core_module.c ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "%V: %s", &u.host, u.err); u 520 mail/ngx_mail_core_module.c cscf->resolver = ngx_resolver_create(cf, &u.addrs[0]); u 35 os/unix/ngx_linux_init.c struct utsname u; u 37 os/unix/ngx_linux_init.c if (uname(&u) == -1) { u 42 os/unix/ngx_linux_init.c (void) ngx_cpystrn(ngx_linux_kern_ostype, (u_char *) u.sysname, u 45 os/unix/ngx_linux_init.c (void) ngx_cpystrn(ngx_linux_kern_osrelease, (u_char *) u.release,