comparison src/http/ngx_http_upstream.c @ 2422:7af1e5fe102c

variable support for unix sockets in fastcgi_pass and proxy_pass
author Igor Sysoev <igor@sysoev.ru>
date Tue, 23 Dec 2008 19:35:12 +0000
parents 89ac47d91fc1
children 0c117a89f399
comparison
equal deleted inserted replaced
2421:8f0f1d151f14 2422:7af1e5fe102c
412 412
413 uscf = u->conf->upstream; 413 uscf = u->conf->upstream;
414 414
415 } else { 415 } else {
416 416
417 if (u->resolved->sockaddr) {
418
419 if (ngx_http_upstream_create_round_robin_peer(r, u->resolved)
420 != NGX_OK)
421 {
422 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
423 return;
424 }
425
426 ngx_http_upstream_connect(r, u);
427
428 return;
429 }
430
417 host = &u->resolved->host; 431 host = &u->resolved->host;
418 432
419 umcf = ngx_http_get_module_main_conf(r, ngx_http_upstream_module); 433 umcf = ngx_http_get_module_main_conf(r, ngx_http_upstream_module);
420 434
421 uscfp = umcf->upstreams.elts; 435 uscfp = umcf->upstreams.elts;