Mercurial > hg > nginx
comparison src/stream/ngx_stream_proxy_module.c @ 6648:d43ee392e825
Stream: fixed build without stream_ssl_module (ticket #1032).
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 26 Jul 2016 19:34:12 +0300 |
parents | 9757cffc1e2f |
children | 38143d1abdec |
comparison
equal
deleted
inserted
replaced
6647:0b4249f975eb | 6648:d43ee392e825 |
---|---|
536 ngx_log_error(NGX_LOG_ALERT, c->log, 0, "no upstream configuration"); | 536 ngx_log_error(NGX_LOG_ALERT, c->log, 0, "no upstream configuration"); |
537 ngx_stream_proxy_finalize(s, NGX_ERROR); | 537 ngx_stream_proxy_finalize(s, NGX_ERROR); |
538 return; | 538 return; |
539 } | 539 } |
540 | 540 |
541 #if (NGX_HTTP_SSL) | 541 #if (NGX_STREAM_SSL) |
542 u->ssl_name = uscf->host; | 542 u->ssl_name = uscf->host; |
543 #endif | 543 #endif |
544 | 544 |
545 if (uscf->peer.init(s, uscf) != NGX_OK) { | 545 if (uscf->peer.init(s, uscf) != NGX_OK) { |
546 ngx_stream_proxy_finalize(s, NGX_ERROR); | 546 ngx_stream_proxy_finalize(s, NGX_ERROR); |
1155 s = ctx->data; | 1155 s = ctx->data; |
1156 | 1156 |
1157 u = s->upstream; | 1157 u = s->upstream; |
1158 ur = u->resolved; | 1158 ur = u->resolved; |
1159 | 1159 |
1160 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, s->connection->log, 0, | 1160 ngx_log_debug0(NGX_LOG_DEBUG_STREAM, s->connection->log, 0, |
1161 "stream upstream resolve"); | 1161 "stream upstream resolve"); |
1162 | 1162 |
1163 if (ctx->state) { | 1163 if (ctx->state) { |
1164 ngx_log_error(NGX_LOG_ERR, s->connection->log, 0, | 1164 ngx_log_error(NGX_LOG_ERR, s->connection->log, 0, |
1165 "%V could not be resolved (%i: %s)", | 1165 "%V could not be resolved (%i: %s)", |