comparison src/http/modules/ngx_http_fastcgi_module.c @ 661:b9763778e212 NGINX_0_9_7

nginx 0.9.7 *) Feature: now keepalive connections may be closed premature, if there are no free worker connections. Thanks to Maxim Dounin. *) Feature: the "rotate" parameter of the "image_filter" directive. Thanks to Adam Bocim. *) Bugfix: a case when a backend in "fastcgi_pass", "scgi_pass", or "uwsgi_pass" directives is given by expression and refers to a defined upstream.
author Igor Sysoev <http://sysoev.ru>
date Mon, 04 Apr 2011 00:00:00 +0400
parents ce857f6b74a7
children
comparison
equal deleted inserted replaced
660:fcda3d3eb4ff 661:b9763778e212
634 } 634 }
635 635
636 return NGX_ERROR; 636 return NGX_ERROR;
637 } 637 }
638 638
639 if (url.no_port) {
640 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
641 "no port in upstream \"%V\"", &url.url);
642 return NGX_ERROR;
643 }
644
645 u = r->upstream; 639 u = r->upstream;
646 640
647 u->resolved = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_resolved_t)); 641 u->resolved = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_resolved_t));
648 if (u->resolved == NULL) { 642 if (u->resolved == NULL) {
649 return NGX_ERROR; 643 return NGX_ERROR;
656 u->resolved->host = url.addrs[0].name; 650 u->resolved->host = url.addrs[0].name;
657 651
658 } else { 652 } else {
659 u->resolved->host = url.host; 653 u->resolved->host = url.host;
660 u->resolved->port = url.port; 654 u->resolved->port = url.port;
655 u->resolved->no_port = url.no_port;
661 } 656 }
662 657
663 return NGX_OK; 658 return NGX_OK;
664 } 659 }
665 660