修改节点心跳发送失败逻辑,现在会直接退出;完善数据通道连接超时的错误处理

This commit is contained in:
2025-05-29 15:22:50 +08:00
parent ceb381bc9b
commit f45ab3e89c
5 changed files with 26 additions and 32 deletions

View File

@@ -85,7 +85,7 @@ func processUserConn(ctx context.Context, user *core.Conn, ctrl io.Writer) (err
if ok {
utils.Close(user)
if errors.Is(err, context.DeadlineExceeded) {
slog.Error("用户连接超时", "tag", tag, "addr", user.RemoteAddr().String())
slog.Warn("建立数据通道超时", "tag", tag, "addr", user.RemoteAddr().String())
}
}