[nginx] Modules compatibility: slow start fields.

Maxim Dounin mdounin at mdounin.ru
Thu Sep 29 17:27:12 UTC 2016


details:   http://hg.nginx.org/nginx/rev/4080f94a996f
branches:  
changeset: 6708:4080f94a996f
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Thu Sep 29 18:06:00 2016 +0300
description:
Modules compatibility: slow start fields.

diffstat:

 src/http/ngx_http_upstream.h                 |  1 +
 src/http/ngx_http_upstream_round_robin.h     |  2 ++
 src/stream/ngx_stream_upstream.h             |  1 +
 src/stream/ngx_stream_upstream_round_robin.h |  2 ++
 4 files changed, 6 insertions(+), 0 deletions(-)

diffs (46 lines):

diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -98,6 +98,7 @@ typedef struct {
     ngx_uint_t                       max_conns;
     ngx_uint_t                       max_fails;
     time_t                           fail_timeout;
+    ngx_msec_t                       slow_start;
 
     unsigned                         down:1;
     unsigned                         backup:1;
diff --git a/src/http/ngx_http_upstream_round_robin.h b/src/http/ngx_http_upstream_round_robin.h
--- a/src/http/ngx_http_upstream_round_robin.h
+++ b/src/http/ngx_http_upstream_round_robin.h
@@ -35,6 +35,8 @@ struct ngx_http_upstream_rr_peer_s {
 
     ngx_uint_t                      max_fails;
     time_t                          fail_timeout;
+    ngx_msec_t                      slow_start;
+    ngx_msec_t                      start_time;
 
     ngx_uint_t                      down;          /* unsigned  down:1; */
 
diff --git a/src/stream/ngx_stream_upstream.h b/src/stream/ngx_stream_upstream.h
--- a/src/stream/ngx_stream_upstream.h
+++ b/src/stream/ngx_stream_upstream.h
@@ -54,6 +54,7 @@ typedef struct {
     ngx_uint_t                         max_conns;
     ngx_uint_t                         max_fails;
     time_t                             fail_timeout;
+    ngx_msec_t                         slow_start;
 
     unsigned                           down:1;
     unsigned                           backup:1;
diff --git a/src/stream/ngx_stream_upstream_round_robin.h b/src/stream/ngx_stream_upstream_round_robin.h
--- a/src/stream/ngx_stream_upstream_round_robin.h
+++ b/src/stream/ngx_stream_upstream_round_robin.h
@@ -35,6 +35,8 @@ struct ngx_stream_upstream_rr_peer_s {
 
     ngx_uint_t                       max_fails;
     time_t                           fail_timeout;
+    ngx_msec_t                       slow_start;
+    ngx_msec_t                       start_time;
 
     ngx_uint_t                       down;         /* unsigned  down:1; */
 



More information about the nginx-devel mailing list