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

fix #2419 - fix RESP2 array decoder in edge cases #2424

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

leibale
Copy link
Collaborator

@leibale leibale commented Feb 23, 2023

@fast-facts it actually is a bug in the decoder that happens in a very rare edge case: an array that contains an empty array, and the inner array data comes in 2 chunks, and the split is exactly between the 0 and the \r\n (i.e *1\r\n*0 \r\n).

@fast-facts
Copy link
Contributor

fast-facts commented Feb 23, 2023

Thanks for troubleshooting this. I figured it was something having to do with chunks splitting data in an "improper" place since the frequency of the hangs increased with the number of chunks that came through.

@leibale leibale merged commit e95b258 into redis:master Feb 24, 2023
@leibale leibale deleted the fix-2419-resp2-decoder branch February 24, 2023 22:34
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