Fix sending oversided data frames to spdy stream

Kubernetes-commit: 0202e269a3deb7ff96d3b9e3fce767c4b37a766e
This commit is contained in:
Jordan Liggitt
2018-11-13 10:57:33 -05:00
committed by Kubernetes Publisher
parent d56d3df33a
commit 5a40e141bd
3 changed files with 43 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ func (p *streamProtocolV1) stream(conn streamCreator) error {
// because stdin is not closed until the process exits. If we try to call
// stdin.Close(), it returns no error but doesn't unblock the copy. It will
// exit when the process exits, instead.
go cp(v1.StreamTypeStdin, p.remoteStdin, p.Stdin)
go cp(v1.StreamTypeStdin, p.remoteStdin, readerWrapper{p.Stdin})
}
waitCount := 0