This commit is contained in:
syuilo 2023-06-09 12:47:36 +09:00
parent 8ccf954065
commit 13870c63b0

View file

@ -139,6 +139,7 @@ export class StreamingApiServerService {
}); });
}); });
// 一定期間通信が無いコネクションは実際には切断されている可能性があるため定期的にterminateする
this.#cleanConnectionsIntervalId = setInterval(() => { this.#cleanConnectionsIntervalId = setInterval(() => {
const now = Date.now(); const now = Date.now();
for (const [connection, lastActive] of this.#connections.entries()) { for (const [connection, lastActive] of this.#connections.entries()) {