Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce configurable flags for I/O limits #1776

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

romange
Copy link
Collaborator

@romange romange commented Aug 31, 2023

Introduced max_multi_bulk_len as a max limit when parsing RESP arrays
as well as max_client_iobuf_len as a max limit on the iobuf used to
read from a socket.

@romange romange requested a review from royjacobson August 31, 2023 04:30
@romange romange force-pushed the ConfigLimits branch 2 times, most recently from 1f270c0 to 6ae5e19 Compare August 31, 2023 07:35
@royjacobson
Copy link
Contributor

royjacobson commented Aug 31, 2023

Looks Ok. A bit sad that there are two independent flags and both need to sort of be in agreement with each other. But I also don't see a good way around it.

The tests fail, though :)

Introduced `max_multi_bulk_len` as a max limit when parsing RESP arrays
as well as `max_client_iobuf_len` as a max limit on the iobuf used to
read from a socket.

Signed-off-by: Roman Gershman <[email protected]>
@romange
Copy link
Collaborator Author

romange commented Aug 31, 2023

@royjacobson PTAL

@romange romange merged commit 1b1f427 into main Aug 31, 2023
@romange romange deleted the ConfigLimits branch August 31, 2023 19:43
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