mirror of https://github.com/tidwall/tile38.git
Change PING output to match REDIS protocol
This commit is contained in:
parent
564b64a758
commit
61b5023000
|
@ -215,7 +215,9 @@ func (s *Server) liveSubscription(
|
||||||
}
|
}
|
||||||
case RESP:
|
case RESP:
|
||||||
if len(msg.Args) > 1 {
|
if len(msg.Args) > 1 {
|
||||||
data := redcon.AppendBulkString(nil, msg.Args[1])
|
data := redcon.AppendArray(nil, 2)
|
||||||
|
data = redcon.AppendBulkString(data, "PONG")
|
||||||
|
data = redcon.AppendBulkString(data, msg.Args[1])
|
||||||
write(data)
|
write(data)
|
||||||
} else {
|
} else {
|
||||||
write([]byte("+PONG\r\n"))
|
write([]byte("+PONG\r\n"))
|
||||||
|
|
Loading…
Reference in New Issue