feat: RedisTurnDaemonTransport에서 lastId 초기값을 '0-0'으로 변경 및 RedisCommandStream에서 블록 시간 제한 추가

This commit is contained in:
2026-01-18 07:38:00 +00:00
parent 879104622a
commit e3f7758187
4 changed files with 18 additions and 9 deletions
@@ -137,11 +137,12 @@ export class RedisTurnDaemonCommandStream implements TurnDaemonControlQueue, Tur
}
const blockMs = deadlineMs === null ? 0 : Math.max(0, deadlineMs - Date.now());
const cappedBlockMs = deadlineMs === null ? 0 : Math.min(blockMs, 1000);
if (deadlineMs !== null && blockMs === 0) {
return null;
}
const remote = await this.readRemoteCommands(blockMs);
const remote = await this.readRemoteCommands(cappedBlockMs);
if (remote.length === 0) {
return null;
}