diff --git a/src/dumpstats.c b/src/dumpstats.c index f0d6c83f5..f7f327671 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -755,12 +755,14 @@ int stats_sock_parse_request(struct stream_interface *si, char *line) */ if (sv->tracked->state & SRV_RUNNING) { set_server_up(sv); + sv->health = sv->rise; /* up, but will fall down at first failure */ } else { sv->state &= ~SRV_MAINTAIN; set_server_down(sv); } } else { set_server_up(sv); + sv->health = sv->rise; /* up, but will fall down at first failure */ } } diff --git a/src/proto_http.c b/src/proto_http.c index 0cbfef266..3003e5d09 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -2931,6 +2931,7 @@ int http_process_req_stat_post(struct session *s, struct buffer *req) if ((sv->state & SRV_MAINTAIN)) { /* Already in maintenance, we can change the server state */ set_server_up(sv); + sv->health = sv->rise; /* up, but will fall down at first failure */ s->data_ctx.stats.st_code = STAT_STATUS_DONE; } break;