]> git.kaiwu.me - nginx.git/commitdiff
Modules compatibility: slow start fields.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 29 Sep 2016 15:06:00 +0000 (18:06 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 29 Sep 2016 15:06:00 +0000 (18:06 +0300)
src/http/ngx_http_upstream.h
src/http/ngx_http_upstream_round_robin.h
src/stream/ngx_stream_upstream.h
src/stream/ngx_stream_upstream_round_robin.h

index d5246d11782cd5e1bbe2d2064f2d68902c70d2e7..315f8566161412cc48c4761f45b6e43d1e95599e 100644 (file)
@@ -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;
index 634fe539ea4843b7f65071f7b6f396c329e6292d..d0f163197eec196d24f5801d9e333357e3c4bfc3 100644 (file)
@@ -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; */
 
index 578ae00042800ba684c84bd3bab40a3ef6ab5c75..db219841738f3bada46fb9392c371e901523f03f 100644 (file)
@@ -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;
index 3a1bf36d6396cedc820eeccb00afd95ab46063d4..8b5840809de97b0b5df822113b6adb1f4ca6c83d 100644 (file)
@@ -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; */