-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix recv() 120s Timeout on EAGAIN by Retrying Indefinitely (#69)
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.
- Loading branch information
Showing
4 changed files
with
160 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters