comparison src/core/ngx_resolver.c @ 648:f200748c0ac8 NGINX_1_1_8

nginx 1.1.8 *) Change: the ngx_http_limit_zone_module was renamed to the ngx_http_limit_conn_module. *) Change: the "limit_zone" directive was superseded by the "limit_conn_zone" directive with a new syntax. *) Feature: support for multiple "limit_conn" limits on the same level. *) Feature: the "image_filter_sharpen" directive. *) Bugfix: a segmentation fault might occur in a worker process if resolver got a big DNS response. Thanks to Ben Hawkes. *) Bugfix: in cache key calculation if internal MD5 implementation was used; the bug had appeared in 1.0.4. *) Bugfix: the "If-Modified-Since", "If-Range", etc. client request header lines might be passed to backend while caching; or not passed without caching if caching was enabled in another part of the configuration. *) Bugfix: the module ngx_http_mp4_module sent incorrect "Content-Length" response header line if the "start" argument was used. Thanks to Piotr Sikora.
author Igor Sysoev <http://sysoev.ru>
date Mon, 14 Nov 2011 00:00:00 +0400
parents 615b5ea36fc0
children 4d05413aebad
comparison
equal deleted inserted replaced
647:bec017127243 648:f200748c0ac8
1950 name->data = dst; 1950 name->data = dst;
1951 1951
1952 n = *src++; 1952 n = *src++;
1953 1953
1954 for ( ;; ) { 1954 for ( ;; ) {
1955 if (n != 0xc0) { 1955 if (n & 0xc0) {
1956 n = ((n & 0x3f) << 8) + *src;
1957 src = &buf[n];
1958
1959 n = *src++;
1960
1961 } else {
1956 ngx_memcpy(dst, src, n); 1962 ngx_memcpy(dst, src, n);
1957 dst += n; 1963 dst += n;
1958 src += n; 1964 src += n;
1959 1965
1960 n = *src++; 1966 n = *src++;
1961 1967
1962 if (n != 0) { 1968 if (n != 0) {
1963 *dst++ = '.'; 1969 *dst++ = '.';
1964 } 1970 }
1965
1966 } else {
1967 n = ((n & 0x3f) << 8) + *src;
1968 src = &buf[n];
1969
1970 n = *src++;
1971 } 1971 }
1972 1972
1973 if (n == 0) { 1973 if (n == 0) {
1974 name->len = dst - name->data; 1974 name->len = dst - name->data;
1975 return NGX_OK; 1975 return NGX_OK;