Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream_round_robin.c @ 1559:fe11e2a3946d
use pool instead of ngx_conf_t
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 08 Oct 2007 08:55:12 +0000 |
parents | 3dc408adbb70 |
children | 6725c3f56216 |
comparison
equal
deleted
inserted
replaced
1558:6d6c5ddedfc0 | 1559:fe11e2a3946d |
---|---|
143 ngx_memzero(&u, sizeof(ngx_url_t)); | 143 ngx_memzero(&u, sizeof(ngx_url_t)); |
144 | 144 |
145 u.host = us->host; | 145 u.host = us->host; |
146 u.port = (in_port_t) (us->port ? us->port : us->default_port); | 146 u.port = (in_port_t) (us->port ? us->port : us->default_port); |
147 | 147 |
148 if (ngx_inet_resolve_host(cf, &u) != NGX_OK) { | 148 if (ngx_inet_resolve_host(cf->pool, &u) != NGX_OK) { |
149 if (u.err) { | 149 if (u.err) { |
150 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, | 150 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, |
151 "%s in upstream \"%V\" in %s:%ui", | 151 "%s in upstream \"%V\" in %s:%ui", |
152 u.err, &us->host, us->file_name, us->line); | 152 u.err, &us->host, us->file_name, us->line); |
153 } | 153 } |