修改节点心跳发送失败逻辑,现在会直接退出;完善数据通道连接超时的错误处理
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user