Compare commits

...
2 Commits
Author SHA1 Message Date
LeoVasanko 5a16925935 Limit WS IDs to 2 digits on access logs. 2026-09-28 03:46:04 +00:00
LeoVasanko bb1659e076 Internal and external auth cache 5 minutes. 2026-08-14 03:47:03 +00:00
2 changed files with 2 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -177,7 +177,7 @@ def _next_ws_id() -> int:
def _format_ws_id(ws_id: int, *, bright: bool = False) -> str:
value = str(ws_id) if ws_id >= 100 else f"{ws_id:02d}"
value = f"{ws_id % 100:02d}"
color = _WS_OPEN if bright else _WS_CLOSE
return f"{color}{value.rjust(3)}{_RESET}"
+1 -1
View File
@@ -68,7 +68,7 @@ async def close_client():
# Keyed by (credential hash, validation URL) so that entries for different
# perms/renew flags coexist and all entries for a credential can be purged
# on logout.
_VALIDATE_CACHE_TTL = 10
_VALIDATE_CACHE_TTL = 300
_validate_cache: dict[tuple[str, str], tuple[float, dict]] = {}