Skip to content

Limit the *SCAN command dictScan iterations - #1993

Merged
antirez merged 1 commit into
redis:unstablefrom
xiaost:limit-scan-iter-count
Sep 10, 2014
Merged

antirez merged 1 commit into
redis:unstablefrom
xiaost:limit-scan-iter-count

Conversation

@xiaost

@xiaost xiaost commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

*SCAN will cause redis server to hang for seconds
after millions of keys was deleted by SCAN/DEL pairs

*SCAN will cause redis server to hang for seconds
after millions of keys was deleted by SCAN/DEL pairs
antirez added a commit that referenced this pull request Sep 10, 2014
Limit the *SCAN command `dictScan` iterations
@antirez
antirez merged commit 9987180 into redis:unstable Sep 10, 2014
@antirez

antirez commented Sep 10, 2014

Copy link
Copy Markdown
Contributor

Merged! Thanks.

@xiaost
xiaost deleted the limit-scan-iter-count branch September 10, 2014 20:52
sundb pushed a commit to sundb/redis that referenced this pull request Jul 28, 2025
This commit introduces a mechanism to track client authentication state
with a new `ever_authenticated` flag. It refactors client authentication
handling by adding a `clientSetUser` function that properly sets both
the authenticated and `ever_authenticated` flags.

The implementation limits output buffer size for clients that have never
been authenticated.

Added tests to verify the output buffer limiting behavior for
unauthenticated clients.

---------

Signed-off-by: Uri Yagelnik <[email protected]>
Signed-off-by: Viktor Söderqvist <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants