comparison src/core/ngx_resolver.c @ 582:c456a023113c NGINX_0_8_43

nginx 0.8.43 *) Feature: large geo ranges base loading speed-up. *) Bugfix: an error_page redirection to "location /zero { return 204; }" without changing status code kept the error body; the bug had appeared in 0.8.42. *) Bugfix: nginx might close IPv6 listen socket during reconfiguration. Thanks to Maxim Dounin. *) Bugfix: the $uid_set variable may be used at any request processing stage.
author Igor Sysoev <http://sysoev.ru>
date Wed, 30 Jun 2010 00:00:00 +0400
parents daf4847b43ff
children be70f83b184f
comparison
equal deleted inserted replaced
581:22b2345b75d9 582:c456a023113c
1834 query->nns_hi = 0; query->nns_lo = 0; 1834 query->nns_hi = 0; query->nns_lo = 0;
1835 query->nar_hi = 0; query->nar_lo = 0; 1835 query->nar_hi = 0; query->nar_lo = 0;
1836 1836
1837 p += sizeof(ngx_resolver_query_t); 1837 p += sizeof(ngx_resolver_query_t);
1838 1838
1839 for (n = 0; n < 32; n += 8){ 1839 for (n = 0; n < 32; n += 8) {
1840 d = ngx_sprintf(&p[1], "%ud", (ctx->addr >> n) & 0xff); 1840 d = ngx_sprintf(&p[1], "%ud", (ctx->addr >> n) & 0xff);
1841 *p = (u_char) (d - &p[1]); 1841 *p = (u_char) (d - &p[1]);
1842 p = d; 1842 p = d;
1843 } 1843 }
1844 1844