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: the bug where iobuf should be enlarged during the replication #1744

Merged
merged 1 commit into from
Aug 25, 2023

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 <roman@dragonflydb.io>
@romange romange merged commit 62a9313 into main Aug 25, 2023
10 checks passed
@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 <roman@dragonflydb.io>
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