fix(rcon): 多包回复在首包到达后发结束标记重组,单包上限放宽到 4106,命令带 ctx 与默认 10s 超时,console 走 ExecuteContext

This commit is contained in:
Lemon-miaow committed 2026-09-25 18:50:01 +08:00
1 parent b7fdef7522
commit 234498b85a
3 files changed
+202 -22

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ func (k *K8sConsole) RunCommand(ctx context.Context, name, command string) (stri
}
defer conn.Close()
out, err := conn.Execute(command)
out, err := conn.ExecuteContext(ctx, command)
if err != nil {
return "", ErrConsoleUnavailable
}