Changeset 6703:edcd9303a4d3 in nginx


Ignore:
Timestamp:
09/22/16 16:32:26 (4 years ago)
Author:
Maxim Dounin <mdounin@…>
Branch:
default
Phase:
public
Message:

Upstream: introduced u->upstream.

It holds upstream{} block configuration, including ones selected via
run-time lookup using variables.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/http/ngx_http_upstream.c

    r6699 r6703  
    749749    }
    750750
     751    u->upstream = uscf;
     752
    751753#if (NGX_HTTP_SSL)
    752754    u->ssl_name = uscf->host;
  • src/http/ngx_http_upstream.h

    r6654 r6703  
    314314
    315315    ngx_http_upstream_conf_t        *conf;
     316    ngx_http_upstream_srv_conf_t    *upstream;
    316317#if (NGX_HTTP_CACHE)
    317318    ngx_array_t                     *caches;
  • src/stream/ngx_stream_proxy_module.c

    r6692 r6703  
    522522    }
    523523
     524    u->upstream = uscf;
     525
    524526#if (NGX_STREAM_SSL)
    525527    u->ssl_name = uscf->host;
  • src/stream/ngx_stream_upstream.h

    r6692 r6703  
    125125#endif
    126126
     127    ngx_stream_upstream_srv_conf_t    *upstream;
    127128    ngx_stream_upstream_resolved_t    *resolved;
    128129    ngx_stream_upstream_state_t       *state;
Note: See TracChangeset for help on using the changeset viewer.