Skip to content

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