Changeset 2ac4f5


Ignore:
Timestamp:
02/03/09 19:43:30 (3 years ago)
Author:
George Potapov <nephrite@…>
Branches:
master-v0.7, nginx-v0.7, nginx-v0.8, upstream_count_limit
Children:
8310b2
Parents:
e7b311
git-author:
George Potapov <nephrite@…> (02/03/09 19:43:30)
git-committer:
George Potapov <nephrite@…> (02/03/09 19:43:30)
Message:

vendor drop nginx 0.7.32

Location:
server
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • server/CHANGES

    re7b311 r2ac4f5  
     1 
     2Changes with nginx 0.7.32                                        26 Jan 2009 
     3 
     4    *) Feature: now a directory existence testing can be set explicitly in  
     5       the "try_files" directive. 
     6 
     7    *) Bugfix: fastcgi_store stored files not always. 
     8 
     9    *) Bugfix: in geo ranges. 
     10 
     11    *) Bugfix: in shared memory allocations if nginx was built without  
     12       debugging. 
     13       Thanks to Andrey Kvasov. 
     14 
    115 
    216Changes with nginx 0.7.31                                        19 Jan 2009 
  • server/CHANGES.ru

    re7b311 r2ac4f5  
     1 
     2éÚÍÅÎÅÎÉÑ × nginx 0.7.32                                          26.01.2009 
     3 
     4    *) äÏÂÁ×ÌÅÎÉÅ: ÔÅÐÅÒØ × ÄÉÒÅËÔÉ×Å try_files ÍÏÖÎÏ Ñ×ÎÏ ÕËÁÚÁÔØ ÐÒÏ×ÅÒËÕ  
     5       ËÁÔÁÌÏÇÁ. 
     6 
     7    *) éÓÐÒÁ×ÌÅÎÉÅ: fastcgi_store ÎÅ ×ÓÅÇÄÁ ÓÏÈÒÁÎÑÌ ÆÁÊÌÙ. 
     8 
     9    *) éÓÐÒÁ×ÌÅÎÉÅ: × ÇÅÏ-ÄÉÁÐÁÚÏÎÁÈ. 
     10 
     11    *) éÓÐÒÁ×ÌÅÎÉÅ: ÏÛÉÂËÉ ×ÙÄÅÌÅÎÉÑ ÂÏÌØÛÉÈ ÂÌÏËÏ× × ÒÁÚÄÅÌÑÅÍÏÊ ÐÁÍÑÔÉ,  
     12       ÅÓÌÉ nginx ÂÙÌ ÓÏÂÒÁÎ ÂÅÚ ÏÔÌÁÄËÉ. 
     13       óÐÁÓÉÂÏ áÎÄÒÅÀ ë×ÁÓÏ×Õ. 
     14 
    115 
    216éÚÍÅÎÅÎÉÑ × nginx 0.7.31                                          19.01.2009 
  • server/src/core/nginx.h

    re7b311 r2ac4f5  
    99 
    1010 
    11 #define NGINX_VERSION      "0.7.31" 
     11#define NGINX_VERSION      "0.7.32" 
    1212#define NGINX_VER          "nginx/" NGINX_VERSION 
    1313 
  • server/src/core/ngx_cycle.c

    re7b311 r2ac4f5  
    395395    pool->log = cycle->new_log; 
    396396 
     397    if (cycle->log->log_level == 0) { 
     398        cycle->log->log_level = NGX_LOG_ERR; 
     399    } 
     400 
    397401 
    398402    /* create shared memory */ 
  • server/src/core/ngx_open_file_cache.c

    rcb7fc3 r2ac4f5  
    458458        } 
    459459 
    460         if (of->is_dir) { 
     460        if (ngx_is_dir(&fi)) { 
    461461            goto done; 
    462462        } 
  • server/src/core/ngx_slab.c

    re7b311 r2ac4f5  
    662662 
    663663            page->slab = pages | NGX_SLAB_PAGE_START; 
    664  
    665 #if (NGX_DEBUG) 
    666664            page->next = NULL; 
    667665            page->prev = NGX_SLAB_PAGE; 
    668 #endif 
    669666 
    670667            if (--pages == 0) { 
     
    674671            for (p = page + 1; pages; pages--) { 
    675672                p->slab = NGX_SLAB_PAGE_BUSY; 
    676 #if (NGX_DEBUG) 
    677673                p->next = NULL; 
    678674                p->prev = NGX_SLAB_PAGE; 
    679 #endif 
    680675                p++; 
    681676            } 
  • server/src/http/modules/ngx_http_fastcgi_module.c

    re7b311 r2ac4f5  
    136136static ngx_int_t ngx_http_fastcgi_path_info_variable(ngx_http_request_t *r, 
    137137    ngx_http_variable_value_t *v, uintptr_t data); 
    138 static ngx_int_t ngx_http_fastcgi_split(ngx_http_request_t *r, 
    139     ngx_http_fastcgi_ctx_t *f, ngx_http_fastcgi_loc_conf_t *flcf); 
     138static ngx_http_fastcgi_ctx_t *ngx_http_fastcgi_split(ngx_http_request_t *r, 
     139    ngx_http_fastcgi_loc_conf_t *flcf); 
    140140 
    141141static char *ngx_http_fastcgi_pass(ngx_conf_t *cf, ngx_command_t *cmd, 
     
    21122112    ngx_http_fastcgi_loc_conf_t  *flcf; 
    21132113 
    2114     f = ngx_http_get_module_ctx(r, ngx_http_fastcgi_module); 
    21152114    flcf = ngx_http_get_module_loc_conf(r, ngx_http_fastcgi_module); 
    21162115 
    2117     if (ngx_http_fastcgi_split(r, f, flcf) != NGX_OK) { 
     2116    f = ngx_http_fastcgi_split(r, flcf); 
     2117 
     2118    if (f == NULL) { 
    21182119        return NGX_ERROR; 
    21192120    } 
     
    21522153    ngx_http_fastcgi_loc_conf_t  *flcf; 
    21532154 
    2154     f = ngx_http_get_module_ctx(r, ngx_http_fastcgi_module); 
    21552155    flcf = ngx_http_get_module_loc_conf(r, ngx_http_fastcgi_module); 
    21562156 
    2157     if (ngx_http_fastcgi_split(r, f, flcf) != NGX_OK) { 
     2157    f = ngx_http_fastcgi_split(r, flcf); 
     2158 
     2159    if (f == NULL) { 
    21582160        return NGX_ERROR; 
    21592161    } 
     
    21692171 
    21702172 
    2171 static ngx_int_t 
    2172 ngx_http_fastcgi_split(ngx_http_request_t *r, ngx_http_fastcgi_ctx_t *f, 
    2173     ngx_http_fastcgi_loc_conf_t *flcf) 
     2173static ngx_http_fastcgi_ctx_t * 
     2174ngx_http_fastcgi_split(ngx_http_request_t *r, ngx_http_fastcgi_loc_conf_t *flcf) 
    21742175{ 
     2176    ngx_http_fastcgi_ctx_t       *f; 
    21752177#if (NGX_PCRE) 
    2176     ngx_int_t  n; 
    2177     int        captures[(1 + 2) * 3]; 
     2178    ngx_int_t                     n; 
     2179    int                           captures[(1 + 2) * 3]; 
     2180 
     2181    f = ngx_http_get_module_ctx(r, ngx_http_fastcgi_module); 
     2182 
     2183    if (f == NULL) { 
     2184        f = ngx_pcalloc(r->pool, sizeof(ngx_http_fastcgi_ctx_t)); 
     2185        if (f == NULL) { 
     2186            return NULL; 
     2187        } 
     2188 
     2189        ngx_http_set_ctx(r, f, ngx_http_fastcgi_module); 
     2190    } 
    21782191 
    21792192    if (f->script_name.len) { 
    2180         return NGX_OK; 
     2193        return f; 
    21812194    } 
    21822195 
    21832196    if (flcf->split_regex == NULL) { 
    21842197        f->script_name = r->uri; 
    2185         return NGX_OK; 
     2198        return f; 
    21862199    } 
    21872200 
     
    21902203    if (n == NGX_REGEX_NO_MATCHED) { 
    21912204        f->script_name = r->uri; 
    2192         return NGX_OK; 
     2205        return f; 
    21932206    } 
    21942207 
     
    21972210                      ngx_regex_exec_n " failed: %d on \"%V\" using \"%V\"", 
    21982211                      n, &r->uri, &flcf->split_name); 
    2199         return NGX_ERROR; 
     2212        return NULL; 
    22002213    } 
    22012214 
     
    22082221    f->path_info.data = r->uri.data + f->script_name.len; 
    22092222 
    2210     return NGX_OK; 
     2223    return f; 
    22112224 
    22122225#else 
    22132226 
     2227    f = ngx_http_get_module_ctx(r, ngx_http_fastcgi_module); 
     2228 
     2229    if (f == NULL) { 
     2230        f = ngx_pcalloc(r->pool, sizeof(ngx_http_fastcgi_ctx_t)); 
     2231        if (f == NULL) { 
     2232            return NULL; 
     2233        } 
     2234 
     2235        ngx_http_set_ctx(r, f, ngx_http_fastcgi_module); 
     2236    } 
     2237 
    22142238    f->script_name = r->uri; 
    22152239 
    2216     return NGX_OK; 
     2240    return f; 
    22172241 
    22182242#endif 
  • server/src/http/modules/ngx_http_geo_module.c

    re7b311 r2ac4f5  
    637637                range = a->elts; 
    638638 
    639                 ngx_memcpy(&range[i + 2], &range[i + 1], 
    640                            (a->nelts - 2 - i) * sizeof(ngx_http_geo_range_t)); 
     639                ngx_memcpy(&range[i + 1], &range[i], 
     640                           (a->nelts - 1 - i) * sizeof(ngx_http_geo_range_t)); 
    641641 
    642642                range[i + 1].start = (u_short) (e + 1); 
  • server/src/http/modules/ngx_http_gzip_filter_module.c

    r814e69 r2ac4f5  
    303303 
    304304        if (in) { 
    305         switch (ngx_http_gzip_filter_copy_recycled(ctx, in)) { 
    306  
    307         case NGX_OK: 
    308         return NGX_OK; 
    309  
    310         case NGX_DONE: 
    311         in = NULL; 
    312         break; 
    313  
    314         default:  /* NGX_ERROR */ 
    315         goto failed; 
    316         } 
     305            switch (ngx_http_gzip_filter_copy_recycled(ctx, in)) { 
     306 
     307            case NGX_OK: 
     308                return NGX_OK; 
     309 
     310            case NGX_DONE: 
     311                in = NULL; 
     312                break; 
     313 
     314            default:  /* NGX_ERROR */ 
     315                goto failed; 
     316            } 
    317317 
    318318        } else { 
  • server/src/http/modules/perl/nginx.pm

    re7b311 r2ac4f5  
    4848); 
    4949 
    50 our $VERSION = '0.7.31'; 
     50our $VERSION = '0.7.32'; 
    5151 
    5252require XSLoader; 
  • server/src/http/ngx_http_core_module.c

    re7b311 r2ac4f5  
    10391039    u_char                       *p, *name; 
    10401040    ngx_str_t                     path; 
     1041    ngx_uint_t                    test_dir; 
    10411042    ngx_http_try_file_t          *tf; 
    10421043    ngx_open_file_info_t          of; 
     
    11331134            } 
    11341135        } 
     1136 
     1137        test_dir = tf->test_dir; 
    11351138 
    11361139        tf++; 
     
    11731176        } 
    11741177 
    1175         if (!of.is_file) { 
     1178        if (of.is_dir && !test_dir) { 
    11761179            continue; 
    11771180        } 
     
    38543857        tf[i].name = value[i + 1]; 
    38553858 
     3859        if (tf[i].name.data[tf[i].name.len - 1] == '/') { 
     3860            tf[i].test_dir = 1; 
     3861            tf[i].name.len--; 
     3862        } 
     3863 
    38563864        n = ngx_http_script_variables_count(&tf[i].name); 
    38573865 
  • server/src/http/ngx_http_core_module.h

    rb82943 r2ac4f5  
    246246    ngx_array_t               *values; 
    247247    ngx_str_t                  name; 
     248    ngx_uint_t                 test_dir;   /* unsigned  test_dir:1; */ 
    248249} ngx_http_try_file_t; 
    249250 
  • server/src/http/ngx_http_upstream.c

    re7b311 r2ac4f5  
    22182218            tf = u->pipe->temp_file; 
    22192219 
    2220             if (p->upstream_eof) { 
     2220            if (p->upstream_eof || p->upstream_done) { 
    22212221 
    22222222                if (u->headers_in.status_n == NGX_HTTP_OK 
Note: See TracChangeset for help on using the changeset viewer.