From 6f8d936dfc688eafb18bd7acb698aac772880ea1 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Sat, 28 Feb 2026 22:42:41 +0800 Subject: [PATCH] fix --- apps/sdlan/src/policy/maxwell_redis_channel.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/sdlan/src/policy/maxwell_redis_channel.erl b/apps/sdlan/src/policy/maxwell_redis_channel.erl index d43874c..f0988ce 100644 --- a/apps/sdlan/src/policy/maxwell_redis_channel.erl +++ b/apps/sdlan/src/policy/maxwell_redis_channel.erl @@ -53,6 +53,9 @@ loop(State=#state{socket = Socket, command = Command = #command{data = Data}}) - end. %% 处理请求命令 +handle_command([<<"PING">>]) -> + {reply, encode({single_line, <<"PONG">>})}; + handle_command(Args) -> logger:debug("[maxwell_redis_channel] args: ~p", [Args]), {reply, encode({error, <<"Unsuported Command">>})}.