fix: properly account worker choice retries for WRR
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 20 Dec 2023 11:49:35 +0000 (12:49 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 20 Dec 2023 11:49:35 +0000 (12:49 +0100)
commit00e1bdeb5c50b0eede8fe2f72d47bf8992e4aede
treeef0861acdede5f84c2ca0fa29cd37e726afcd2a7
parentd62fc5e18631cc99b49c6792c00dc36fa70339e0
fix: properly account worker choice retries for WRR

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 files changed:
examples/typescript/http-client-pool/httpd-echo.js
src/pools/abstract-pool.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/selection-strategies-types.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts
src/utils.ts
tests/pools/abstract-pool.test.mjs
tests/pools/selection-strategies/selection-strategies.test.mjs
tests/pools/selection-strategies/worker-choice-strategy-context.test.mjs
tests/utils.test.mjs