Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"exceljs": "^4.4.0",
"ioredis": "^5.4.2",
"ioredis": "^6.0.0",
"iron-session": "^8.0.4",
"next": "^16.3.1",
"next-themes": "^0.4.4",
Expand Down
5 changes: 5 additions & 0 deletions apps/web/src/lib/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ export function getRedis(): Redis | null {
}

const client = new Redis(url, {
// ioredis 6 negotiates RESP3 by default. Stay on the v5 wire protocol: the
// only consumer is the rate limiter's EVAL, which gains nothing from RESP3,
// and a failed handshake would be silent (the limiter fails open, see
// below). Revisit deliberately, with a check against the live server.
protocol: 2,
// Fail fast instead of queueing/retrying forever, so a Redis outage can't
// stall request handling — the rate limiter just falls open.
maxRetriesPerRequest: 1,
Expand Down
29 changes: 10 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.