perf(auction): reduce polling with verified socket recovery

Keep fixed 30-second safety polling with separate recovery polling, confirm persistent heartbeat gaps, and refresh shared history after durable writes.
This commit is contained in:
dahyeon committed 2026-11-12 01:49:27 +09:00
1 parent e349684523
commit 23a0a3f8dd
20 files changed
+790 -154

No files matched your search

+18
View File
@@ -72,6 +72,24 @@ test('bounds retries and honors retry delay without rejoining the room', async (
assert.deepEqual(waits, [1500, 1500]);
});
test('reports failure when all replies remain behind the required revision', async () => {
let failed = 0;
let applied = 0;
const sync = createAuctionResyncRequester(
async () => ({ ok: true, state: state(10) }),
() => {
applied++;
},
noWait,
() => {
failed++;
},
);
await sync.request(12, 'life');
assert.equal(applied, 3);
assert.equal(failed, 1);
});
test('drops an old connection reply after cancellation and permits a new request', async () => {
let finish!: (reply: AuctionResyncReply) => void;
let calls = 0;