kvrocks
kvrocks copied to clipboard
feat: add CLIENT PAUSE and CLIENT REPLY subcommands
This PR is a part of #2422
I have added two subcommands for the command CLIENT:
CLIENT PAUSE: Pauses processing of eitherWRITEorALLcommands until aftertimeoutmilliseconds.CLIENT REPLY: Stops server from sending replies to the client, starting; immediately ifOFF, or skips one ifSKIP. Starts sending replies ifON.
@furkan-bilgin Thanks for your contribution. Could you please help to pass the CI lint according to https://github.com/apache/kvrocks/actions/runs/10441248380/job/28912245323?pr=2495
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
@furkan-bilgin Looks good if you can add some Go test cases to cover this. And another point is that we should disable the EV_READ for connection while pausing?