-
Notifications
You must be signed in to change notification settings - Fork 126
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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; | |||
} | |||
|
|||
|
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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; | |||
} | |||
|
There was a problem hiding this comment.
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; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
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: |
default_port was removed from ngx_http_upstream_srv_conf_s since nginx 1.16.6