fix: fix race condition in worker choice strategies
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 30 Aug 2023 19:31:04 +0000 (21:31 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 30 Aug 2023 19:31:04 +0000 (21:31 +0200)
commitedf8ce4e11eb0105038fcc236a2049c16b6175d2
tree226f96fcf3f76d360945d1a265efc56178feb5a8
parentc3d5c83fb151cd978304c3e1f5142a466d1b0b19
fix: fix race condition in worker choice strategies

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
12 files changed:
.vscode/settings.json
CHANGELOG.md
examples/typescript/http-server-pool/fastify-hybrid/package.json
examples/typescript/http-server-pool/fastify-hybrid/pnpm-lock.yaml
examples/typescript/http-server-pool/fastify-hybrid/requests.sh [deleted file]
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/interleaved-weighted-round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/least-busy-worker-choice-strategy.ts
src/pools/selection-strategies/least-elu-worker-choice-strategy.ts
src/pools/selection-strategies/least-used-worker-choice-strategy.ts
src/pools/selection-strategies/round-robin-worker-choice-strategy.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts