diff options
author | Viktor Söderqvist <viktor.soderqvist@est.tech> | 2023-03-19 11:56:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-19 12:56:54 +0200 |
commit | bbf364a442b463f3cf0d310ad052727de68a493a (patch) | |
tree | 5adacdc523aa860019de0bb35bdd99d144eb932b /COPYING | |
parent | c9466b24a60df4254dd2ab4ba71048c30b49076f (diff) | |
download | redis-bbf364a442b463f3cf0d310ad052727de68a493a.tar.gz |
redis-cli: Accept commands in subscribed mode (#11873)
The message "Reading messages... (press Ctrl-C to quit)" is replaced by
"Reading messages... (press Ctrl-C to quit or any key to type command)".
This allows users to subscribe to more channels, to try out UNSUBSCRIBE and to
combine pubsub with other features such as push messages from client tracking.
The "Reading messages" info message is displayed in the bottom of the output in a
distinct style and moves downward as more messages appear. When any key is pressed,
the info message is replaced by the prompt with for entering commands.
After entering a command and the reply is displayed, the "Reading messages" info
messages appears again. This is added to the repl loop in redis-cli and in the
corresponding place for non-interactive mode.
An indication "(subscribed mode)" is included in the prompt when entering commands
in subscribed mode.
Also:
* Fixes a problem that UNSUBSCRIBE hanged when used with RESP3 and push callback,
without first entering subscribe mode. It hanged because UNSUBSCRIBE gets one or
more push replies but no in-band reply.
* Exit subscribed mode after RESET.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions