- update to 11.4
- Feature: the $upstream_bytes_received variable.
- Feature: the $bytes_received, $session_time, $protocol,
$status, $upstream_addr, $upstream_bytes_sent,
$upstream_bytes_received, $upstream_connect_time,
$upstream_first_byte_time, and $upstream_session_time variables
in the stream module.
- Feature: the ngx_stream_log_module.
- Feature: the "proxy_protocol" parameter of the "listen"
directive, the $proxy_protocol_addr and $proxy_protocol_port
variables in the stream module.
- Feature: the ngx_stream_realip_module.
- Bugfix: nginx could not be built with the stream module and the
ngx_http_ssl_module, but without ngx_stream_ssl_module; the bug
had appeared in 1.11.3.
- Feature: the IP_BIND_ADDRESS_NO_PORT socket option was not
used; the bug had appeared in 1.11.2.
- Bugfix: in the "ranges" parameter of the "geo" directive.
- Bugfix: an incorrect response might be returned when using the
"aio threads" and "sendfile" directives; the bug had appeared
in 1.9.13.
- drop nginx-1.11.3_ssl_stream.patch again
- refreshed the following patches to apply cleanly again
check_1.9.2+.patch
nginx-1.11.2-html.patch
nginx-1.11.2-no_Werror.patch
nginx-aio.patch
- update to 1.11.3
- Change: now the "accept_mutex" directive is turned off by
default.
- Feature: now nginx uses EPOLLEXCLUSIVE on Linux.
- Feature: the ngx_stream_geo_module.
- Feature: the ngx_stream_geoip_module.
- Feature: the ngx_stream_split_clients_module.
- Feature: variables support in the "proxy_pass" and
"proxy_ssl_name" directives in the stream module.
- Bugfix: socket leak when using HTTP/2.
- Bugfix: in configure tests. Thanks to Piotr Sikora.
- backport nginx-1.11.3_ssl_stream.patch from hg
- refresh patches to apply cleanly again:
- check_1.9.2+.patch
- nginx-1.11.2-html.patch
- nginx-1.11.2-no_Werror.patch
- nginx-aio.patch
- enable a few new upstream modules and move some from 1.11.x to
dynamic:
- stream_geoip_module
- mail_ssl_module
- stream_ssl_module
- build fancyindex unconditionally and update it to 0.4.1
- New `fancyindex_directories_first` configuration directive
(enabled by default), which allows setting whether directories
are sorted before other files.
(Patch by Luke Zapart <<luke@zapart.org>>.)
- Fix index files not working when the fancyindex module is in
use (#46).
- The module can now be built as a [dynamic
module](https://www.nginx.com/resources/wiki/extending/converting/).
(Patch by Róbert Nagy <<vrnagy@gmail.com>>.)
- New configuration directive `fancyindex_show_path`, which
allows hiding the `<h1>` header which contains the current
path. (Patch by Thomas P. <<tpxp@live.fr>>.)
- Directory and file links in listings now have a title="..."
attribute. (Patch by `@janglapuk` <<trusdi.agus@gmail.com>>.)
- Fix for hung requests when the module is used along with
`ngx_pagespeed`.
(Patch by Otto van der Schaaf <<oschaaf@we-amp.com>>.)
- New feature: Allow filtering out symbolic links using the
`fancyindex_hide_symlinks` configuration directive. (Idea and
prototype patch by Thomas Wemm.)
- New feature: Allow specifying the format of timestamps using
the `fancyindex_time_format` configuration directive. (Idea
suggested by Xiao Meng <<novoreorx@gmail.com>>).
- Listings in top-level directories will not generate a "Parent
Directory" link as first element of the listing.
(Patch by Thomas P.)
- Fix propagation and overriding of the `fancyindex_css_href`
setting inside nested locations.
- Minor changes in the code to allow building cleanly under
Windows with Visual Studio 2013.
(Patch by Y. Yuan <<yzwduck@gmail.com>>).
- added nginx-rtmp-module
- make all modules dynamic that support it:
- ngx-fancyindex
- headers_more_nginx-module
- nginx-rtmp-module
- manually install the docs instead of using %doc
- unify how we install documentation for the modules
- restructure contrib file handling
- moved vim files into the normal vim paths so we can use them
directly
- new BR/R: vim
- split out vim files into a subpackage vim-plugin-nginx so we
dont have the vim requires on the main package
- perl scripts are moved to /usr/share/nginx/
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=70
2016-09-29 13:13:50 +02:00
|
|
|
Index: src/http/modules/ngx_http_upstream_hash_module.c
|
|
|
|
===================================================================
|
|
|
|
--- src/http/modules/ngx_http_upstream_hash_module.c.orig
|
2016-08-05 03:22:23 +02:00
|
|
|
+++ src/http/modules/ngx_http_upstream_hash_module.c
|
|
|
|
@@ -9,6 +9,9 @@
|
|
|
|
#include <ngx_core.h>
|
|
|
|
#include <ngx_http.h>
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+#include "ngx_http_upstream_check_module.h"
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint32_t hash;
|
2020-08-05 14:10:58 +02:00
|
|
|
@@ -238,6 +241,15 @@ ngx_http_upstream_get_hash_peer(ngx_peer
|
2016-08-05 03:22:23 +02:00
|
|
|
goto next;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
|
|
|
|
+ "get hash peer, check_index: %ui",
|
|
|
|
+ peer->check_index);
|
|
|
|
+ if (ngx_http_upstream_check_peer_down(peer->check_index)) {
|
|
|
|
+ goto next;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
if (peer->max_fails
|
|
|
|
&& peer->fails >= peer->max_fails
|
|
|
|
&& now - peer->checked <= peer->fail_timeout)
|
2020-08-05 14:10:58 +02:00
|
|
|
@@ -560,6 +572,15 @@ ngx_http_upstream_get_chash_peer(ngx_pee
|
2016-08-05 03:22:23 +02:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
|
|
|
|
+ "get consistent_hash peer, check_index: %ui",
|
|
|
|
+ peer->check_index);
|
|
|
|
+ if (ngx_http_upstream_check_peer_down(peer->check_index)) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
if (peer->server.len != server->len
|
|
|
|
|| ngx_strncmp(peer->server.data, server->data, server->len)
|
|
|
|
!= 0)
|
- update to 11.4
- Feature: the $upstream_bytes_received variable.
- Feature: the $bytes_received, $session_time, $protocol,
$status, $upstream_addr, $upstream_bytes_sent,
$upstream_bytes_received, $upstream_connect_time,
$upstream_first_byte_time, and $upstream_session_time variables
in the stream module.
- Feature: the ngx_stream_log_module.
- Feature: the "proxy_protocol" parameter of the "listen"
directive, the $proxy_protocol_addr and $proxy_protocol_port
variables in the stream module.
- Feature: the ngx_stream_realip_module.
- Bugfix: nginx could not be built with the stream module and the
ngx_http_ssl_module, but without ngx_stream_ssl_module; the bug
had appeared in 1.11.3.
- Feature: the IP_BIND_ADDRESS_NO_PORT socket option was not
used; the bug had appeared in 1.11.2.
- Bugfix: in the "ranges" parameter of the "geo" directive.
- Bugfix: an incorrect response might be returned when using the
"aio threads" and "sendfile" directives; the bug had appeared
in 1.9.13.
- drop nginx-1.11.3_ssl_stream.patch again
- refreshed the following patches to apply cleanly again
check_1.9.2+.patch
nginx-1.11.2-html.patch
nginx-1.11.2-no_Werror.patch
nginx-aio.patch
- update to 1.11.3
- Change: now the "accept_mutex" directive is turned off by
default.
- Feature: now nginx uses EPOLLEXCLUSIVE on Linux.
- Feature: the ngx_stream_geo_module.
- Feature: the ngx_stream_geoip_module.
- Feature: the ngx_stream_split_clients_module.
- Feature: variables support in the "proxy_pass" and
"proxy_ssl_name" directives in the stream module.
- Bugfix: socket leak when using HTTP/2.
- Bugfix: in configure tests. Thanks to Piotr Sikora.
- backport nginx-1.11.3_ssl_stream.patch from hg
- refresh patches to apply cleanly again:
- check_1.9.2+.patch
- nginx-1.11.2-html.patch
- nginx-1.11.2-no_Werror.patch
- nginx-aio.patch
- enable a few new upstream modules and move some from 1.11.x to
dynamic:
- stream_geoip_module
- mail_ssl_module
- stream_ssl_module
- build fancyindex unconditionally and update it to 0.4.1
- New `fancyindex_directories_first` configuration directive
(enabled by default), which allows setting whether directories
are sorted before other files.
(Patch by Luke Zapart <<luke@zapart.org>>.)
- Fix index files not working when the fancyindex module is in
use (#46).
- The module can now be built as a [dynamic
module](https://www.nginx.com/resources/wiki/extending/converting/).
(Patch by Róbert Nagy <<vrnagy@gmail.com>>.)
- New configuration directive `fancyindex_show_path`, which
allows hiding the `<h1>` header which contains the current
path. (Patch by Thomas P. <<tpxp@live.fr>>.)
- Directory and file links in listings now have a title="..."
attribute. (Patch by `@janglapuk` <<trusdi.agus@gmail.com>>.)
- Fix for hung requests when the module is used along with
`ngx_pagespeed`.
(Patch by Otto van der Schaaf <<oschaaf@we-amp.com>>.)
- New feature: Allow filtering out symbolic links using the
`fancyindex_hide_symlinks` configuration directive. (Idea and
prototype patch by Thomas Wemm.)
- New feature: Allow specifying the format of timestamps using
the `fancyindex_time_format` configuration directive. (Idea
suggested by Xiao Meng <<novoreorx@gmail.com>>).
- Listings in top-level directories will not generate a "Parent
Directory" link as first element of the listing.
(Patch by Thomas P.)
- Fix propagation and overriding of the `fancyindex_css_href`
setting inside nested locations.
- Minor changes in the code to allow building cleanly under
Windows with Visual Studio 2013.
(Patch by Y. Yuan <<yzwduck@gmail.com>>).
- added nginx-rtmp-module
- make all modules dynamic that support it:
- ngx-fancyindex
- headers_more_nginx-module
- nginx-rtmp-module
- manually install the docs instead of using %doc
- unify how we install documentation for the modules
- restructure contrib file handling
- moved vim files into the normal vim paths so we can use them
directly
- new BR/R: vim
- split out vim files into a subpackage vim-plugin-nginx so we
dont have the vim requires on the main package
- perl scripts are moved to /usr/share/nginx/
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=70
2016-09-29 13:13:50 +02:00
|
|
|
Index: src/http/modules/ngx_http_upstream_ip_hash_module.c
|
|
|
|
===================================================================
|
|
|
|
--- src/http/modules/ngx_http_upstream_ip_hash_module.c.orig
|
2016-08-05 03:22:23 +02:00
|
|
|
+++ src/http/modules/ngx_http_upstream_ip_hash_module.c
|
|
|
|
@@ -9,6 +9,9 @@
|
|
|
|
#include <ngx_core.h>
|
|
|
|
#include <ngx_http.h>
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+#include "ngx_http_upstream_check_module.h"
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
/* the round robin data must be first */
|
2020-08-05 14:10:58 +02:00
|
|
|
@@ -208,6 +211,15 @@ ngx_http_upstream_get_ip_hash_peer(ngx_p
|
2016-08-05 03:22:23 +02:00
|
|
|
goto next;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
|
|
|
|
+ "get ip_hash peer, check_index: %ui",
|
|
|
|
+ peer->check_index);
|
|
|
|
+ if (ngx_http_upstream_check_peer_down(peer->check_index)) {
|
|
|
|
+ goto next;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
if (peer->max_fails
|
|
|
|
&& peer->fails >= peer->max_fails
|
|
|
|
&& now - peer->checked <= peer->fail_timeout)
|
- update to 11.4
- Feature: the $upstream_bytes_received variable.
- Feature: the $bytes_received, $session_time, $protocol,
$status, $upstream_addr, $upstream_bytes_sent,
$upstream_bytes_received, $upstream_connect_time,
$upstream_first_byte_time, and $upstream_session_time variables
in the stream module.
- Feature: the ngx_stream_log_module.
- Feature: the "proxy_protocol" parameter of the "listen"
directive, the $proxy_protocol_addr and $proxy_protocol_port
variables in the stream module.
- Feature: the ngx_stream_realip_module.
- Bugfix: nginx could not be built with the stream module and the
ngx_http_ssl_module, but without ngx_stream_ssl_module; the bug
had appeared in 1.11.3.
- Feature: the IP_BIND_ADDRESS_NO_PORT socket option was not
used; the bug had appeared in 1.11.2.
- Bugfix: in the "ranges" parameter of the "geo" directive.
- Bugfix: an incorrect response might be returned when using the
"aio threads" and "sendfile" directives; the bug had appeared
in 1.9.13.
- drop nginx-1.11.3_ssl_stream.patch again
- refreshed the following patches to apply cleanly again
check_1.9.2+.patch
nginx-1.11.2-html.patch
nginx-1.11.2-no_Werror.patch
nginx-aio.patch
- update to 1.11.3
- Change: now the "accept_mutex" directive is turned off by
default.
- Feature: now nginx uses EPOLLEXCLUSIVE on Linux.
- Feature: the ngx_stream_geo_module.
- Feature: the ngx_stream_geoip_module.
- Feature: the ngx_stream_split_clients_module.
- Feature: variables support in the "proxy_pass" and
"proxy_ssl_name" directives in the stream module.
- Bugfix: socket leak when using HTTP/2.
- Bugfix: in configure tests. Thanks to Piotr Sikora.
- backport nginx-1.11.3_ssl_stream.patch from hg
- refresh patches to apply cleanly again:
- check_1.9.2+.patch
- nginx-1.11.2-html.patch
- nginx-1.11.2-no_Werror.patch
- nginx-aio.patch
- enable a few new upstream modules and move some from 1.11.x to
dynamic:
- stream_geoip_module
- mail_ssl_module
- stream_ssl_module
- build fancyindex unconditionally and update it to 0.4.1
- New `fancyindex_directories_first` configuration directive
(enabled by default), which allows setting whether directories
are sorted before other files.
(Patch by Luke Zapart <<luke@zapart.org>>.)
- Fix index files not working when the fancyindex module is in
use (#46).
- The module can now be built as a [dynamic
module](https://www.nginx.com/resources/wiki/extending/converting/).
(Patch by Róbert Nagy <<vrnagy@gmail.com>>.)
- New configuration directive `fancyindex_show_path`, which
allows hiding the `<h1>` header which contains the current
path. (Patch by Thomas P. <<tpxp@live.fr>>.)
- Directory and file links in listings now have a title="..."
attribute. (Patch by `@janglapuk` <<trusdi.agus@gmail.com>>.)
- Fix for hung requests when the module is used along with
`ngx_pagespeed`.
(Patch by Otto van der Schaaf <<oschaaf@we-amp.com>>.)
- New feature: Allow filtering out symbolic links using the
`fancyindex_hide_symlinks` configuration directive. (Idea and
prototype patch by Thomas Wemm.)
- New feature: Allow specifying the format of timestamps using
the `fancyindex_time_format` configuration directive. (Idea
suggested by Xiao Meng <<novoreorx@gmail.com>>).
- Listings in top-level directories will not generate a "Parent
Directory" link as first element of the listing.
(Patch by Thomas P.)
- Fix propagation and overriding of the `fancyindex_css_href`
setting inside nested locations.
- Minor changes in the code to allow building cleanly under
Windows with Visual Studio 2013.
(Patch by Y. Yuan <<yzwduck@gmail.com>>).
- added nginx-rtmp-module
- make all modules dynamic that support it:
- ngx-fancyindex
- headers_more_nginx-module
- nginx-rtmp-module
- manually install the docs instead of using %doc
- unify how we install documentation for the modules
- restructure contrib file handling
- moved vim files into the normal vim paths so we can use them
directly
- new BR/R: vim
- split out vim files into a subpackage vim-plugin-nginx so we
dont have the vim requires on the main package
- perl scripts are moved to /usr/share/nginx/
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=70
2016-09-29 13:13:50 +02:00
|
|
|
Index: src/http/modules/ngx_http_upstream_least_conn_module.c
|
|
|
|
===================================================================
|
|
|
|
--- src/http/modules/ngx_http_upstream_least_conn_module.c.orig
|
2016-08-05 03:22:23 +02:00
|
|
|
+++ src/http/modules/ngx_http_upstream_least_conn_module.c
|
|
|
|
@@ -9,6 +9,9 @@
|
|
|
|
#include <ngx_core.h>
|
|
|
|
#include <ngx_http.h>
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+#include "ngx_http_upstream_check_module.h"
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
static ngx_int_t ngx_http_upstream_init_least_conn_peer(ngx_http_request_t *r,
|
|
|
|
ngx_http_upstream_srv_conf_t *us);
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -147,6 +150,16 @@ ngx_http_upstream_get_least_conn_peer(ng
|
2016-08-05 03:22:23 +02:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
|
|
|
|
+ "get least_conn peer, check_index: %ui",
|
|
|
|
+ peer->check_index);
|
|
|
|
+
|
|
|
|
+ if (ngx_http_upstream_check_peer_down(peer->check_index)) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
if (peer->max_fails
|
|
|
|
&& peer->fails >= peer->max_fails
|
|
|
|
&& now - peer->checked <= peer->fail_timeout)
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -202,6 +215,16 @@ ngx_http_upstream_get_least_conn_peer(ng
|
2016-08-05 03:22:23 +02:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0,
|
|
|
|
+ "get least_conn peer, check_index: %ui",
|
|
|
|
+ peer->check_index);
|
|
|
|
+
|
|
|
|
+ if (ngx_http_upstream_check_peer_down(peer->check_index)) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
if (peer->conns * best->weight != best->conns * peer->weight) {
|
|
|
|
continue;
|
|
|
|
}
|
- update to 11.4
- Feature: the $upstream_bytes_received variable.
- Feature: the $bytes_received, $session_time, $protocol,
$status, $upstream_addr, $upstream_bytes_sent,
$upstream_bytes_received, $upstream_connect_time,
$upstream_first_byte_time, and $upstream_session_time variables
in the stream module.
- Feature: the ngx_stream_log_module.
- Feature: the "proxy_protocol" parameter of the "listen"
directive, the $proxy_protocol_addr and $proxy_protocol_port
variables in the stream module.
- Feature: the ngx_stream_realip_module.
- Bugfix: nginx could not be built with the stream module and the
ngx_http_ssl_module, but without ngx_stream_ssl_module; the bug
had appeared in 1.11.3.
- Feature: the IP_BIND_ADDRESS_NO_PORT socket option was not
used; the bug had appeared in 1.11.2.
- Bugfix: in the "ranges" parameter of the "geo" directive.
- Bugfix: an incorrect response might be returned when using the
"aio threads" and "sendfile" directives; the bug had appeared
in 1.9.13.
- drop nginx-1.11.3_ssl_stream.patch again
- refreshed the following patches to apply cleanly again
check_1.9.2+.patch
nginx-1.11.2-html.patch
nginx-1.11.2-no_Werror.patch
nginx-aio.patch
- update to 1.11.3
- Change: now the "accept_mutex" directive is turned off by
default.
- Feature: now nginx uses EPOLLEXCLUSIVE on Linux.
- Feature: the ngx_stream_geo_module.
- Feature: the ngx_stream_geoip_module.
- Feature: the ngx_stream_split_clients_module.
- Feature: variables support in the "proxy_pass" and
"proxy_ssl_name" directives in the stream module.
- Bugfix: socket leak when using HTTP/2.
- Bugfix: in configure tests. Thanks to Piotr Sikora.
- backport nginx-1.11.3_ssl_stream.patch from hg
- refresh patches to apply cleanly again:
- check_1.9.2+.patch
- nginx-1.11.2-html.patch
- nginx-1.11.2-no_Werror.patch
- nginx-aio.patch
- enable a few new upstream modules and move some from 1.11.x to
dynamic:
- stream_geoip_module
- mail_ssl_module
- stream_ssl_module
- build fancyindex unconditionally and update it to 0.4.1
- New `fancyindex_directories_first` configuration directive
(enabled by default), which allows setting whether directories
are sorted before other files.
(Patch by Luke Zapart <<luke@zapart.org>>.)
- Fix index files not working when the fancyindex module is in
use (#46).
- The module can now be built as a [dynamic
module](https://www.nginx.com/resources/wiki/extending/converting/).
(Patch by Róbert Nagy <<vrnagy@gmail.com>>.)
- New configuration directive `fancyindex_show_path`, which
allows hiding the `<h1>` header which contains the current
path. (Patch by Thomas P. <<tpxp@live.fr>>.)
- Directory and file links in listings now have a title="..."
attribute. (Patch by `@janglapuk` <<trusdi.agus@gmail.com>>.)
- Fix for hung requests when the module is used along with
`ngx_pagespeed`.
(Patch by Otto van der Schaaf <<oschaaf@we-amp.com>>.)
- New feature: Allow filtering out symbolic links using the
`fancyindex_hide_symlinks` configuration directive. (Idea and
prototype patch by Thomas Wemm.)
- New feature: Allow specifying the format of timestamps using
the `fancyindex_time_format` configuration directive. (Idea
suggested by Xiao Meng <<novoreorx@gmail.com>>).
- Listings in top-level directories will not generate a "Parent
Directory" link as first element of the listing.
(Patch by Thomas P.)
- Fix propagation and overriding of the `fancyindex_css_href`
setting inside nested locations.
- Minor changes in the code to allow building cleanly under
Windows with Visual Studio 2013.
(Patch by Y. Yuan <<yzwduck@gmail.com>>).
- added nginx-rtmp-module
- make all modules dynamic that support it:
- ngx-fancyindex
- headers_more_nginx-module
- nginx-rtmp-module
- manually install the docs instead of using %doc
- unify how we install documentation for the modules
- restructure contrib file handling
- moved vim files into the normal vim paths so we can use them
directly
- new BR/R: vim
- split out vim files into a subpackage vim-plugin-nginx so we
dont have the vim requires on the main package
- perl scripts are moved to /usr/share/nginx/
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=70
2016-09-29 13:13:50 +02:00
|
|
|
Index: src/http/ngx_http_upstream_round_robin.c
|
|
|
|
===================================================================
|
|
|
|
--- src/http/ngx_http_upstream_round_robin.c.orig
|
2016-08-05 03:22:23 +02:00
|
|
|
+++ src/http/ngx_http_upstream_round_robin.c
|
|
|
|
@@ -9,6 +9,9 @@
|
|
|
|
#include <ngx_core.h>
|
|
|
|
#include <ngx_http.h>
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+#include "ngx_http_upstream_check_module.h"
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#define ngx_http_upstream_tries(p) ((p)->number \
|
|
|
|
+ ((p)->next ? (p)->next->number : 0))
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -97,7 +100,14 @@ ngx_http_upstream_init_round_robin(ngx_c
|
2016-08-05 03:22:23 +02:00
|
|
|
peer[n].fail_timeout = server[i].fail_timeout;
|
|
|
|
peer[n].down = server[i].down;
|
|
|
|
peer[n].server = server[i].name;
|
|
|
|
-
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ if (!server[i].down) {
|
|
|
|
+ peer[n].check_index =
|
|
|
|
+ ngx_http_upstream_check_add_peer(cf, us, &server[i].addrs[j]);
|
|
|
|
+ } else {
|
|
|
|
+ peer[n].check_index = (ngx_uint_t) NGX_ERROR;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
*peerp = &peer[n];
|
|
|
|
peerp = &peer[n].next;
|
|
|
|
n++;
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -161,7 +171,15 @@ ngx_http_upstream_init_round_robin(ngx_c
|
2016-08-05 03:22:23 +02:00
|
|
|
peer[n].fail_timeout = server[i].fail_timeout;
|
|
|
|
peer[n].down = server[i].down;
|
|
|
|
peer[n].server = server[i].name;
|
|
|
|
-
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ if (!server[i].down) {
|
|
|
|
+ peer[n].check_index =
|
|
|
|
+ ngx_http_upstream_check_add_peer(cf, us, &server[i].addrs[j]);
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ peer[n].check_index = (ngx_uint_t) NGX_ERROR;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
*peerp = &peer[n];
|
|
|
|
peerp = &peer[n].next;
|
|
|
|
n++;
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -228,6 +246,9 @@ ngx_http_upstream_init_round_robin(ngx_c
|
|
|
|
peer[i].max_conns = 0;
|
2016-08-05 03:22:23 +02:00
|
|
|
peer[i].max_fails = 1;
|
|
|
|
peer[i].fail_timeout = 10;
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ peer[i].check_index = (ngx_uint_t) NGX_ERROR;
|
|
|
|
+#endif
|
|
|
|
*peerp = &peer[i];
|
|
|
|
peerp = &peer[i].next;
|
|
|
|
}
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -344,6 +365,9 @@ ngx_http_upstream_create_round_robin_pee
|
|
|
|
peer[0].max_conns = 0;
|
2016-08-05 03:22:23 +02:00
|
|
|
peer[0].max_fails = 1;
|
|
|
|
peer[0].fail_timeout = 10;
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ peer[0].check_index = (ngx_uint_t) NGX_ERROR;
|
|
|
|
+#endif
|
|
|
|
peers->peer = peer;
|
|
|
|
|
|
|
|
} else {
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -378,6 +402,9 @@ ngx_http_upstream_create_round_robin_pee
|
|
|
|
peer[i].max_conns = 0;
|
2016-08-05 03:22:23 +02:00
|
|
|
peer[i].max_fails = 1;
|
|
|
|
peer[i].fail_timeout = 10;
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ peer[i].check_index = (ngx_uint_t) NGX_ERROR;
|
|
|
|
+#endif
|
|
|
|
*peerp = &peer[i];
|
|
|
|
peerp = &peer[i].next;
|
|
|
|
}
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -443,6 +470,12 @@ ngx_http_upstream_get_round_robin_peer(n
|
2016-08-05 03:22:23 +02:00
|
|
|
goto failed;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ if (ngx_http_upstream_check_peer_down(peer->check_index)) {
|
|
|
|
+ goto failed;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
rrp->current = peer;
|
|
|
|
|
|
|
|
} else {
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -537,6 +570,12 @@ ngx_http_upstream_get_peer(ngx_http_upst
|
2016-08-05 03:22:23 +02:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ if (ngx_http_upstream_check_peer_down(peer->check_index)) {
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
if (peer->max_fails
|
|
|
|
&& peer->fails >= peer->max_fails
|
|
|
|
&& now - peer->checked <= peer->fail_timeout)
|
- update to 11.4
- Feature: the $upstream_bytes_received variable.
- Feature: the $bytes_received, $session_time, $protocol,
$status, $upstream_addr, $upstream_bytes_sent,
$upstream_bytes_received, $upstream_connect_time,
$upstream_first_byte_time, and $upstream_session_time variables
in the stream module.
- Feature: the ngx_stream_log_module.
- Feature: the "proxy_protocol" parameter of the "listen"
directive, the $proxy_protocol_addr and $proxy_protocol_port
variables in the stream module.
- Feature: the ngx_stream_realip_module.
- Bugfix: nginx could not be built with the stream module and the
ngx_http_ssl_module, but without ngx_stream_ssl_module; the bug
had appeared in 1.11.3.
- Feature: the IP_BIND_ADDRESS_NO_PORT socket option was not
used; the bug had appeared in 1.11.2.
- Bugfix: in the "ranges" parameter of the "geo" directive.
- Bugfix: an incorrect response might be returned when using the
"aio threads" and "sendfile" directives; the bug had appeared
in 1.9.13.
- drop nginx-1.11.3_ssl_stream.patch again
- refreshed the following patches to apply cleanly again
check_1.9.2+.patch
nginx-1.11.2-html.patch
nginx-1.11.2-no_Werror.patch
nginx-aio.patch
- update to 1.11.3
- Change: now the "accept_mutex" directive is turned off by
default.
- Feature: now nginx uses EPOLLEXCLUSIVE on Linux.
- Feature: the ngx_stream_geo_module.
- Feature: the ngx_stream_geoip_module.
- Feature: the ngx_stream_split_clients_module.
- Feature: variables support in the "proxy_pass" and
"proxy_ssl_name" directives in the stream module.
- Bugfix: socket leak when using HTTP/2.
- Bugfix: in configure tests. Thanks to Piotr Sikora.
- backport nginx-1.11.3_ssl_stream.patch from hg
- refresh patches to apply cleanly again:
- check_1.9.2+.patch
- nginx-1.11.2-html.patch
- nginx-1.11.2-no_Werror.patch
- nginx-aio.patch
- enable a few new upstream modules and move some from 1.11.x to
dynamic:
- stream_geoip_module
- mail_ssl_module
- stream_ssl_module
- build fancyindex unconditionally and update it to 0.4.1
- New `fancyindex_directories_first` configuration directive
(enabled by default), which allows setting whether directories
are sorted before other files.
(Patch by Luke Zapart <<luke@zapart.org>>.)
- Fix index files not working when the fancyindex module is in
use (#46).
- The module can now be built as a [dynamic
module](https://www.nginx.com/resources/wiki/extending/converting/).
(Patch by Róbert Nagy <<vrnagy@gmail.com>>.)
- New configuration directive `fancyindex_show_path`, which
allows hiding the `<h1>` header which contains the current
path. (Patch by Thomas P. <<tpxp@live.fr>>.)
- Directory and file links in listings now have a title="..."
attribute. (Patch by `@janglapuk` <<trusdi.agus@gmail.com>>.)
- Fix for hung requests when the module is used along with
`ngx_pagespeed`.
(Patch by Otto van der Schaaf <<oschaaf@we-amp.com>>.)
- New feature: Allow filtering out symbolic links using the
`fancyindex_hide_symlinks` configuration directive. (Idea and
prototype patch by Thomas Wemm.)
- New feature: Allow specifying the format of timestamps using
the `fancyindex_time_format` configuration directive. (Idea
suggested by Xiao Meng <<novoreorx@gmail.com>>).
- Listings in top-level directories will not generate a "Parent
Directory" link as first element of the listing.
(Patch by Thomas P.)
- Fix propagation and overriding of the `fancyindex_css_href`
setting inside nested locations.
- Minor changes in the code to allow building cleanly under
Windows with Visual Studio 2013.
(Patch by Y. Yuan <<yzwduck@gmail.com>>).
- added nginx-rtmp-module
- make all modules dynamic that support it:
- ngx-fancyindex
- headers_more_nginx-module
- nginx-rtmp-module
- manually install the docs instead of using %doc
- unify how we install documentation for the modules
- restructure contrib file handling
- moved vim files into the normal vim paths so we can use them
directly
- new BR/R: vim
- split out vim files into a subpackage vim-plugin-nginx so we
dont have the vim requires on the main package
- perl scripts are moved to /usr/share/nginx/
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=70
2016-09-29 13:13:50 +02:00
|
|
|
Index: src/http/ngx_http_upstream_round_robin.h
|
|
|
|
===================================================================
|
|
|
|
--- src/http/ngx_http_upstream_round_robin.h.orig
|
2016-08-05 03:22:23 +02:00
|
|
|
+++ src/http/ngx_http_upstream_round_robin.h
|
2017-01-07 09:16:09 +01:00
|
|
|
@@ -38,6 +38,10 @@ struct ngx_http_upstream_rr_peer_s {
|
|
|
|
ngx_msec_t slow_start;
|
|
|
|
ngx_msec_t start_time;
|
2016-08-05 03:22:23 +02:00
|
|
|
|
|
|
|
+#if (NGX_HTTP_UPSTREAM_CHECK)
|
|
|
|
+ ngx_uint_t check_index;
|
|
|
|
+#endif
|
|
|
|
+
|
2017-01-07 09:16:09 +01:00
|
|
|
ngx_uint_t down;
|
2016-08-05 03:22:23 +02:00
|
|
|
|
2017-01-07 09:16:09 +01:00
|
|
|
#if (NGX_HTTP_SSL || NGX_COMPAT)
|