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 recv() 120s Timeout on EAGAIN by Retrying Indefinitely #69

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

moticless
Copy link
Collaborator

Syncing with redis server may fail on configured 120-second timeout on recv()
in RESTORE MODE with a big key, say >4GB. It takes Redis server a long time to
process the RESTORE command before ACK. The solution is to modify the logic to
continuously retry without a timeout. An appropriate log message will be printed
every 10 seconds, such as: "No reply from Redis server for 10 seconds."

If requested, we can expose conifguration to fine tune timeout duration and retries.

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