Mercurial > hg > nginx
comparison src/http/modules/ngx_http_uwsgi_module.c @ 6303:a93345ee8f52
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.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Sat, 21 Nov 2015 10:44:07 +0300 |
parents | b2899e7d0ef8 |
children | 91c8d990fb45 |
comparison
equal
deleted
inserted
replaced
6302:bec5b3093337 | 6303:a93345ee8f52 |
---|---|
769 u->resolved->naddrs = 1; | 769 u->resolved->naddrs = 1; |
770 u->resolved->host = url.addrs[0].name; | 770 u->resolved->host = url.addrs[0].name; |
771 | 771 |
772 } else { | 772 } else { |
773 u->resolved->host = url.host; | 773 u->resolved->host = url.host; |
774 u->resolved->port = url.port; | 774 } |
775 u->resolved->no_port = url.no_port; | 775 |
776 } | 776 u->resolved->port = url.port; |
777 u->resolved->no_port = url.no_port; | |
777 | 778 |
778 return NGX_OK; | 779 return NGX_OK; |
779 } | 780 } |
780 | 781 |
781 | 782 |