Mercurial > hg > nginx-mail
comparison src/http/modules/ngx_http_uwsgi_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 | 09d5f308901f |
children |
comparison
equal
deleted
inserted
replaced
660:fcda3d3eb4ff | 661:b9763778e212 |
---|---|
489 } | 489 } |
490 | 490 |
491 return NGX_ERROR; | 491 return NGX_ERROR; |
492 } | 492 } |
493 | 493 |
494 if (url.no_port) { | |
495 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | |
496 "no port in upstream \"%V\"", &url.url); | |
497 return NGX_ERROR; | |
498 } | |
499 | |
500 u = r->upstream; | 494 u = r->upstream; |
501 | 495 |
502 u->resolved = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_resolved_t)); | 496 u->resolved = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_resolved_t)); |
503 if (u->resolved == NULL) { | 497 if (u->resolved == NULL) { |
504 return NGX_ERROR; | 498 return NGX_ERROR; |
511 u->resolved->host = url.addrs[0].name; | 505 u->resolved->host = url.addrs[0].name; |
512 | 506 |
513 } else { | 507 } else { |
514 u->resolved->host = url.host; | 508 u->resolved->host = url.host; |
515 u->resolved->port = url.port; | 509 u->resolved->port = url.port; |
510 u->resolved->no_port = url.no_port; | |
516 } | 511 } |
517 | 512 |
518 return NGX_OK; | 513 return NGX_OK; |
519 } | 514 } |
520 | 515 |