Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_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 | 2a621245f4cf |
children | 91c8d990fb45 |
comparison
equal
deleted
inserted
replaced
6302:bec5b3093337 | 6303:a93345ee8f52 |
---|---|
771 u->resolved->naddrs = 1; | 771 u->resolved->naddrs = 1; |
772 u->resolved->host = url.addrs[0].name; | 772 u->resolved->host = url.addrs[0].name; |
773 | 773 |
774 } else { | 774 } else { |
775 u->resolved->host = url.host; | 775 u->resolved->host = url.host; |
776 u->resolved->port = url.port; | 776 } |
777 u->resolved->no_port = url.no_port; | 777 |
778 } | 778 u->resolved->port = url.port; |
779 u->resolved->no_port = url.no_port; | |
779 | 780 |
780 return NGX_OK; | 781 return NGX_OK; |
781 } | 782 } |
782 | 783 |
783 | 784 |