Ignore:
Timestamp:
02/03/09 19:41:37 (3 years ago)
Author:
George Potapov <nephrite@…>
Branches:
master-v0.7, nginx-v0.7, nginx-v0.8, upstream_count_limit
Children:
2ac4f5
Parents:
2240a4
git-author:
George Potapov <nephrite@…> (02/03/09 19:41:37)
git-committer:
George Potapov <nephrite@…> (02/03/09 19:41:37)
Message:

vendor drop nginx 0.7.31

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/src/http/ngx_http_upstream.c

    r814e69 re7b311  
    14421442        } 
    14431443 
    1444         if (status == NGX_HTTP_NOT_FOUND && u->conf->intercept_404) { 
    1445             ngx_http_upstream_finalize_request(r, u, NGX_HTTP_NOT_FOUND); 
    1446             return NGX_OK; 
    1447         } 
    1448  
    14491444#if (NGX_HTTP_CACHE) 
    14501445 
     
    14721467    ngx_http_core_loc_conf_t  *clcf; 
    14731468 
     1469    status = u->headers_in.status_n; 
     1470 
     1471    if (status == NGX_HTTP_NOT_FOUND && u->conf->intercept_404) { 
     1472        ngx_http_upstream_finalize_request(r, u, NGX_HTTP_NOT_FOUND); 
     1473        return NGX_OK; 
     1474    } 
     1475 
    14741476    if (!u->conf->intercept_errors) { 
    14751477        return NGX_DECLINED; 
     
    14811483        return NGX_DECLINED; 
    14821484    } 
    1483  
    1484     status = u->headers_in.status_n; 
    14851485 
    14861486    err_page = clcf->error_pages->elts; 
     
    22022202ngx_http_upstream_process_request(ngx_http_request_t *r) 
    22032203{ 
     2204    ngx_uint_t            del; 
    22042205    ngx_temp_file_t      *tf; 
    22052206    ngx_event_pipe_t     *p; 
     
    22132214        if (u->store) { 
    22142215 
     2216            del = p->upstream_error; 
     2217 
    22152218            tf = u->pipe->temp_file; 
    22162219 
    2217             if (p->upstream_eof 
    2218                 && u->headers_in.status_n == NGX_HTTP_OK 
    2219                 && (u->headers_in.content_length_n == -1 
    2220                     || (u->headers_in.content_length_n == tf->offset))) 
    2221             { 
    2222                 ngx_http_upstream_store(r, u); 
    2223  
    2224             } else if ((p->upstream_error 
    2225                         || (p->upstream_eof 
    2226                             && u->headers_in.status_n != NGX_HTTP_OK)) 
    2227                        && tf->file.fd != NGX_INVALID_FILE) 
    2228             { 
     2220            if (p->upstream_eof) { 
     2221 
     2222                if (u->headers_in.status_n == NGX_HTTP_OK 
     2223                    && (u->headers_in.content_length_n == -1 
     2224                        || (u->headers_in.content_length_n == tf->offset))) 
     2225                { 
     2226                    ngx_http_upstream_store(r, u); 
     2227 
     2228                } else { 
     2229                    del = 1; 
     2230                } 
     2231            } 
     2232 
     2233            if (del && tf->file.fd != NGX_INVALID_FILE) { 
     2234 
    22292235                if (ngx_delete_file(tf->file.name.data) == NGX_FILE_ERROR) { 
    22302236 
Note: See TracChangeset for help on using the changeset viewer.