-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the PING command over the inline protocol (#412)
This PR adds, as a quick workaround to fully enable the redis-benchmark cli tool support, the ability to handle the PING command over the inline protocol. The implementation is fairly simple and works only if the PING command, followed by the new line, fits, in its entirety, the buffer otherwise is reported as error and the connection is closed. As the only reason of this implementation is to support redis-benchmark and it never sends commands byte by byte, we can always expect the command to be in the buffer. The PR also contains some minor valgrind and comment fixes.
- Loading branch information
1 parent
a2d7509
commit 104c08a
Showing
2 changed files
with
66 additions
and
8 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