comparison src/http/ngx_http_upstream.c @ 618: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 cde3626b2d0d
children 8dc007eddbcf
comparison
equal deleted inserted replaced
617:fcda3d3eb4ff 618:b9763778e212
572 { 572 {
573 goto found; 573 goto found;
574 } 574 }
575 } 575 }
576 576
577 if (u->resolved->port == 0) {
578 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
579 "no port in upstream \"%V\"", host);
580 ngx_http_upstream_finalize_request(r, u,
581 NGX_HTTP_INTERNAL_SERVER_ERROR);
582 return;
583 }
584
577 temp.name = *host; 585 temp.name = *host;
578 586
579 ctx = ngx_resolve_start(clcf->resolver, &temp); 587 ctx = ngx_resolve_start(clcf->resolver, &temp);
580 if (ctx == NULL) { 588 if (ctx == NULL) {
581 ngx_http_upstream_finalize_request(r, u, 589 ngx_http_upstream_finalize_request(r, u,