Skip to content

Commit d9d04af

Browse files
committed
feat: add socket timeout
1 parent f96ba2d commit d9d04af

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/core/shared/clients

src/core/shared/clients/kv.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ function createRedisClient() {
5353
// behind the auto-reconnect. Preserves the {status: 'error'} envelope on
5454
// pingKv() and keeps /api/health snappy during Redis outages.
5555
disableOfflineQueue: true,
56+
socket: {
57+
socketTimeout: 10_000,
58+
},
5659
})
5760

5861
client.on('error', (error) => {

0 commit comments

Comments
 (0)