Merge pull request #3176 from baude/resizechanbuffer

make remote resize channel buffered
This commit is contained in:
OpenShift Merge Robot
2019-05-22 08:57:53 +02:00
committed by GitHub

View File

@ -561,7 +561,7 @@ func (r *LocalRuntime) attach(ctx context.Context, stdin, stdout *os.File, cid s
if err != nil { if err != nil {
return nil, err return nil, err
} }
resize := make(chan remotecommand.TerminalSize) resize := make(chan remotecommand.TerminalSize, 5)
haveTerminal := terminal.IsTerminal(int(os.Stdin.Fd())) haveTerminal := terminal.IsTerminal(int(os.Stdin.Fd()))
// Check if we are attached to a terminal. If we are, generate resize // Check if we are attached to a terminal. If we are, generate resize