commit | efc0eec4c1c1a6f21efc4c0ead23761700c8acb6 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Sep 24 07:27:06 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Oct 09 11:27:30 2020 +0200 |
tree | e2dd1b4e7dbad88be1ca314acf9143be2d68e9ac | |
parent | a37b244509f48a534bd6812298f9b7fff48833dc [diff] |
MINOR: proxy: maintain per-state counters of listeners The proxy state tries to be synthetic but that doesn't work well with many listeners, especially for transition phases or after a failed pause/resume. In order to address this, we'll instead rely on counters of listeners in a given state for the 3 major states (ready, paused, listen) and a total counter. We'll now be able to determine a proxy's state by comparing these counters only.