Mercurial > hg > nginx-vendor-current
comparison src/http/modules/ngx_http_scgi_module.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 | 09d5f308901f |
children | 5b73504dd4ba |
comparison
equal
deleted
inserted
replaced
617:fcda3d3eb4ff | 618:b9763778e212 |
---|---|
456 } | 456 } |
457 | 457 |
458 return NGX_ERROR; | 458 return NGX_ERROR; |
459 } | 459 } |
460 | 460 |
461 if (url.no_port) { | |
462 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | |
463 "no port in upstream \"%V\"", &url.url); | |
464 return NGX_ERROR; | |
465 } | |
466 | |
467 u = r->upstream; | 461 u = r->upstream; |
468 | 462 |
469 u->resolved = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_resolved_t)); | 463 u->resolved = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_resolved_t)); |
470 if (u->resolved == NULL) { | 464 if (u->resolved == NULL) { |
471 return NGX_ERROR; | 465 return NGX_ERROR; |
478 u->resolved->host = url.addrs[0].name; | 472 u->resolved->host = url.addrs[0].name; |
479 | 473 |
480 } else { | 474 } else { |
481 u->resolved->host = url.host; | 475 u->resolved->host = url.host; |
482 u->resolved->port = url.port; | 476 u->resolved->port = url.port; |
477 u->resolved->no_port = url.no_port; | |
483 } | 478 } |
484 | 479 |
485 return NGX_OK; | 480 return NGX_OK; |
486 } | 481 } |
487 | 482 |