Ignore:
Timestamp:
10/30/09 18:13:41 (3 years ago)
Author:
George Potapov <nephrite@…>
Branches:
nginx-v0.8
Parents:
178a98
git-author:
George Potapov <nephrite@…> (10/30/09 18:13:41)
git-committer:
George Potapov <nephrite@…> (10/30/09 18:13:41)
Message:

Vendor drop nginx v0.8.21

File:
1 edited

Legend:

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

    r89d9dc rc7670f  
    382382 
    383383    /* the default server configuration for the address:port */ 
    384     cscf = addr_conf->core_srv_conf; 
     384    cscf = addr_conf->default_server; 
    385385 
    386386    r->main_conf = cscf->ctx->main_conf; 
     
    16891689#if (NGX_PCRE) 
    16901690 
    1691     if (r->virtual_names->nregex) { 
     1691    if (len && r->virtual_names->nregex) { 
    16921692        size_t                   ncaptures; 
    16931693        ngx_int_t                n; 
     
    17051705        for (i = 0; i < r->virtual_names->nregex; i++) { 
    17061706 
    1707             if (sn[i].captures && r->captures == NULL) { 
     1707            if (sn[i].server->captures && r->captures == NULL) { 
    17081708 
    17091709                ncaptures = (NGX_HTTP_MAX_CAPTURES + 1) * 3; 
     
    17311731            /* match */ 
    17321732 
    1733             cscf = sn[i].core_srv_conf; 
     1733            cscf = sn[i].server; 
    17341734 
    17351735            r->ncaptures = ncaptures; 
     
    21022102    ngx_http_core_loc_conf_t  *clcf; 
    21032103 
     2104    clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 
     2105 
    21042106    if (r->main->count != 1) { 
     2107 
     2108        if (r->discard_body) { 
     2109            r->read_event_handler = ngx_http_discarded_request_body_handler; 
     2110 
     2111            if (r->lingering_time == 0) { 
     2112                r->lingering_time = ngx_time() 
     2113                                      + (time_t) (clcf->lingering_time / 1000); 
     2114                ngx_add_timer(r->connection->read, clcf->lingering_timeout); 
     2115            } 
     2116        } 
     2117 
    21052118        ngx_http_close_request(r, 0); 
    21062119        return; 
    21072120    } 
    2108  
    2109     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 
    21102121 
    21112122    if (!ngx_terminate 
     
    21342145    r->http_state = NGX_HTTP_WRITING_REQUEST_STATE; 
    21352146 
    2136     r->read_event_handler = ngx_http_test_reading; 
     2147    r->read_event_handler = r->discard_body ? 
     2148                                ngx_http_discarded_request_body_handler: 
     2149                                ngx_http_test_reading; 
    21372150    r->write_event_handler = ngx_http_writer; 
    21382151 
     
    22352248    ngx_log_debug2(NGX_LOG_DEBUG_HTTP, wev->log, 0, 
    22362249                   "http writer done: \"%V?%V\"", &r->uri, &r->args); 
     2250 
     2251    r->write_event_handler = ngx_http_request_empty_handler; 
    22372252 
    22382253    ngx_http_finalize_request(r, rc); 
Note: See TracChangeset for help on using the changeset viewer.