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
commit 6f02f3b2bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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