This commit is contained in:
jarek committed 2026-07-11 15:31:52 +02:00
1 parent 685132ff89
commit c718ac9a84
101 files changed
+5097 -642

No files matched your search

+4
View File
@@ -1183,6 +1183,10 @@ async function handleHawserWsMessage(ws: any, msg: any, connId: string, remoteIp
return;
}
// Auth succeeded — clear any prior failure cooldown for this IP so a
// legitimate agent (e.g. after a token rotation) isn't locked out.
hawserAuthFailCache.delete(rateLimitKey);
// Throttle reconnection storms (successful auth but broken Docker = rapid reconnect loop)
const throttle = recordReconnection(result.environmentId);
if (!throttle.allowed) {