]> git.kaiwu.me - nginx.git/commit
Upstream: fixed "no port" detection in evaluated upstreams.
authorRuslan Ermilov <ru@nginx.com>
Sat, 21 Nov 2015 07:44:07 +0000 (10:44 +0300)
committerRuslan Ermilov <ru@nginx.com>
Sat, 21 Nov 2015 07:44:07 +0000 (10:44 +0300)
commit72b9a317d2983b3127b8cce21236af8409ff732a
tree77227aec49ac06df16d3477708e2488bb2421f3d
parentcb5306984b3f2eacb155dfee17b1b9e3165c9168
Upstream: fixed "no port" detection in evaluated upstreams.

If an upstream with variables evaluated to address without a port,
then instead of a "no port in upstream" error an attempt was made
to connect() which failed with EADDRNOTAVAIL.
src/http/modules/ngx_http_fastcgi_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_scgi_module.c
src/http/modules/ngx_http_uwsgi_module.c
src/http/ngx_http_upstream.c