Repository navigation
Conversation
madolson
reviewed
Dec 26, 2023
| * contains denied commands, in which case is_denyoom_command is already | ||
| * set. */ | ||
| if (c->flags & CLIENT_MULTI && | ||
| c->mstate.argv_len_sums > MULTI_MAX_BYTES_ON_OOM && |
Contributor
There was a problem hiding this comment.
Suggested change
| c->mstate.argv_len_sums > MULTI_MAX_BYTES_ON_OOM && | |
| c->mstate.argv_len_sums > server. proto_max_bulk_len && |
I'm still going to advocate this should be a config, since I think it's possible 32k will be too low.
Member
There was a problem hiding this comment.
ok, fair enough, clients can easily consume that amount of memory without multi-exec, so i'm fine using that limit (1gb).
but then i'd remind you that for unauthenticated clients we have a limit of 16k
Line 2359 in 628c0de
Author
There was a problem hiding this comment.
I suppose this loophole still exists today as long as the server is not at max memory
Contributor
|
I believe this now defunct after this was merged? https://github.com/redis/redis/pull/12961/files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow queuing of multi commands up to 32kb when server is at maxmemory as long as there are no DENY-OOM commands.
Fixes: #9926