Mercurial > hg > nginx
comparison src/stream/ngx_stream_proxy_module.c @ 6703:edcd9303a4d3
Upstream: introduced u->upstream.
It holds upstream{} block configuration, including ones selected via
run-time lookup using variables.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 22 Sep 2016 19:32:26 +0300 |
parents | 56fc55e32f23 |
children | 563a1ee345a4 |
comparison
equal
deleted
inserted
replaced
6702:914d8a63dbad | 6703:edcd9303a4d3 |
---|---|
519 ngx_log_error(NGX_LOG_ALERT, c->log, 0, "no upstream configuration"); | 519 ngx_log_error(NGX_LOG_ALERT, c->log, 0, "no upstream configuration"); |
520 ngx_stream_proxy_finalize(s, NGX_STREAM_INTERNAL_SERVER_ERROR); | 520 ngx_stream_proxy_finalize(s, NGX_STREAM_INTERNAL_SERVER_ERROR); |
521 return; | 521 return; |
522 } | 522 } |
523 | 523 |
524 u->upstream = uscf; | |
525 | |
524 #if (NGX_STREAM_SSL) | 526 #if (NGX_STREAM_SSL) |
525 u->ssl_name = uscf->host; | 527 u->ssl_name = uscf->host; |
526 #endif | 528 #endif |
527 | 529 |
528 if (uscf->peer.init(s, uscf) != NGX_OK) { | 530 if (uscf->peer.init(s, uscf) != NGX_OK) { |