Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with nginx 1.11.6 #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix build with nginx 1.11.6 #52

wants to merge 1 commit into from

Conversation

cryptofuture
Copy link

@cryptofuture cryptofuture commented Nov 17, 2016

default_port was removed from ngx_http_upstream_srv_conf_s since nginx 1.16.6

@@ -1319,13 +1319,15 @@ ngx_postgres_find_upstream(ngx_http_request_t *r, ngx_url_t *url)
(int) uscfp[i]->port, (int) url->port);
continue;
}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line trailing spaces here?

@@ -1319,13 +1319,15 @@ ngx_postgres_find_upstream(ngx_http_request_t *r, ngx_url_t *url)
(int) uscfp[i]->port, (int) url->port);
continue;
}


#if (nginx_version < 1011006)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# should be on the first column of the line.

if (uscfp[i]->default_port && url->default_port
&& (uscfp[i]->default_port != url->default_port))
{
dd("default_port doesn't match");
continue;
}
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

@@ -1319,14 +1319,14 @@ ngx_postgres_find_upstream(ngx_http_request_t *r, ngx_url_t *url)
(int) uscfp[i]->port, (int) url->port);
continue;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant we need this blank line for aesthetic reasons.

if (uscfp[i]->default_port && url->default_port
&& (uscfp[i]->default_port != url->default_port))
{
dd("default_port doesn't match");
continue;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

KangOl added a commit to odoo/ngx_postgres that referenced this pull request Jun 22, 2017
@agentzh
Copy link
Contributor

agentzh commented Sep 23, 2017

Since I no longer have commit access to this repo, I've committed a slightly modified version of this patch to OpenResty's fork of this repo:

https://github.com/openresty/ngx_postgres

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants