mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
* it might have been possible that a flapping server would not have been
detected UP is responding just before being declared down.
This commit is contained in:
parent
d2058dc491
commit
06a1205f57
@ -5341,6 +5341,8 @@ int process_chk(struct task *t) {
|
|||||||
//fprintf(stderr, "process_chk: 9\n");
|
//fprintf(stderr, "process_chk: 9\n");
|
||||||
s->health++; /* was bad, stays for a while */
|
s->health++; /* was bad, stays for a while */
|
||||||
if (s->health >= s->rise) {
|
if (s->health >= s->rise) {
|
||||||
|
s->state |= SRV_RUNNING;
|
||||||
|
|
||||||
if (s->health == s->rise) {
|
if (s->health == s->rise) {
|
||||||
recount_servers(s->proxy);
|
recount_servers(s->proxy);
|
||||||
Warning("%sServer %s/%s UP. %d active and %d backup servers online.%s\n",
|
Warning("%sServer %s/%s UP. %d active and %d backup servers online.%s\n",
|
||||||
@ -5355,7 +5357,6 @@ int process_chk(struct task *t) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
s->health = s->rise + s->fall - 1; /* OK now */
|
s->health = s->rise + s->fall - 1; /* OK now */
|
||||||
s->state |= SRV_RUNNING;
|
|
||||||
}
|
}
|
||||||
s->curfd = -1; /* no check running anymore */
|
s->curfd = -1; /* no check running anymore */
|
||||||
//FD_CLR(fd, StaticWriteEvent);
|
//FD_CLR(fd, StaticWriteEvent);
|
||||||
|
Loading…
Reference in New Issue
Block a user