fix(rcon): 多包回复在首包到达后发结束标记重组,单包上限放宽到 4106,命令带 ctx 与默认 10s 超时,console 走 ExecuteContext
This commit is contained in:
3 files changed
+202
-22
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user