Skip to content

Conversation

romange
Copy link
Collaborator

@romange romange commented Aug 25, 2023

If an empty buffer is passed to the socket Recv function - it returns error 103. Even if we returned success, this would lead to the endless loop since the parser requires more data to parse the load.
Fixes #1680

If an empty buffer is passed to the socket Recv function - it returns error 103.
Even if we returned success, this would lead to the endless loop since the parser
requires more data to parse the load.
Fixes #1680

Signed-off-by: Roman Gershman <[email protected]>
@romange romange requested a review from royjacobson August 25, 2023 18:18
@romange romange merged commit 62a9313 into main Aug 25, 2023
@romange romange deleted the FixRedisRepl branch August 25, 2023 19:38
kostasrim pushed a commit that referenced this pull request Aug 29, 2023
…1744)

If an empty buffer is passed to the socket Recv function - it returns error 103.
Even if we returned success, this would lead to the endless loop since the parser
requires more data to parse the load.
Fixes #1680

Signed-off-by: Roman Gershman <[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.

replicating redis 7.0.2 cause a sync loop
2 participants