summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorViktor Söderqvist <viktor.soderqvist@est.tech>2022-11-09 13:41:00 +0100
committerGitHub <noreply@github.com>2022-11-09 14:41:00 +0200
commit07d187066a86a9a3124af740373bf5bf49e345ff (patch)
treed58366eb0dbfaf4eb9ea30d022e4fb519ae9e27f /src/commands
parentccaef5c923a14dc183c50530f52ada0fda012179 (diff)
downloadredis-07d187066a86a9a3124af740373bf5bf49e345ff.tar.gz
Deprecate QUIT (#11439)
Clients should not use this command. Instead, clients should simply close the connection when they're not used anymore. Terminating a connection on the client side is preferable, as it eliminates `TIME_WAIT` lingering sockets on the server side.
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/quit.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commands/quit.json b/src/commands/quit.json
index cf13f1ee9..cdb80336d 100644
--- a/src/commands/quit.json
+++ b/src/commands/quit.json
@@ -6,6 +6,11 @@
"since": "1.0.0",
"arity": -1,
"function": "quitCommand",
+ "deprecated_since": "7.2.0",
+ "replaced_by": "just closing the connection",
+ "doc_flags": [
+ "DEPRECATED"
+ ],
"command_flags": [
"ALLOW_BUSY",
"NOSCRIPT",