Welcome! Log In Create A New Profile

Advanced

[nginx] Upstream: removed ngx_http_upstream_srv_conf_t.default_port.

October 31, 2016 04:42PM
details: http://hg.nginx.org/nginx/rev/4dea01cf49e8
branches:
changeset: 6789:4dea01cf49e8
user: Ruslan Ermilov <ru@nginx.com>
date: Mon Oct 17 14:30:54 2016 +0300
description:
Upstream: removed ngx_http_upstream_srv_conf_t.default_port.

This is an API change.

diffstat:

src/http/ngx_http_upstream.c | 2 --
src/http/ngx_http_upstream.h | 1 -
2 files changed, 0 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 3fa5983b6b44 -r 4dea01cf49e8 src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c Mon Oct 17 14:27:45 2016 +0300
+++ b/src/http/ngx_http_upstream.c Mon Oct 17 14:30:54 2016 +0300
@@ -5763,7 +5763,6 @@ ngx_http_upstream_add(ngx_conf_t *cf, ng
if (flags & NGX_HTTP_UPSTREAM_CREATE) {
uscfp[i]->flags = flags;
uscfp[i]->port = 0;
- uscfp[i]->default_port = 0;
}

return uscfp[i];
@@ -5779,7 +5778,6 @@ ngx_http_upstream_add(ngx_conf_t *cf, ng
uscf->file_name = cf->conf_file->file.name.data;
uscf->line = cf->conf_file->line;
uscf->port = u->port;
- uscf->default_port = u->default_port;
uscf->no_port = u->no_port;

if (u->naddrs == 1 && (u->port || u->family == AF_UNIX)) {
diff -r 3fa5983b6b44 -r 4dea01cf49e8 src/http/ngx_http_upstream.h
--- a/src/http/ngx_http_upstream.h Mon Oct 17 14:27:45 2016 +0300
+++ b/src/http/ngx_http_upstream.h Mon Oct 17 14:30:54 2016 +0300
@@ -128,7 +128,6 @@ struct ngx_http_upstream_srv_conf_s {
u_char *file_name;
ngx_uint_t line;
in_port_t port;
- in_port_t default_port;
ngx_uint_t no_port; /* unsigned no_port:1 */

#if (NGX_HTTP_UPSTREAM_ZONE)

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Upstream: removed ngx_http_upstream_srv_conf_t.default_port.

ru@nginx.com 765 October 31, 2016 04:42PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 261
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready