]> Cypherpunks repositories - gostls13.git/commit
exp/ssh: simplify Stdin/out/errPipe methods
authorDave Cheney <dave@cheney.net>
Thu, 15 Dec 2011 21:50:41 +0000 (16:50 -0500)
committerAdam Langley <agl@golang.org>
Thu, 15 Dec 2011 21:50:41 +0000 (16:50 -0500)
commit52c8107a3c68245bccc836a0003fea1dcead450a
tree53b26a860d2b4acf34476122dae6789c0946b899
parentb618f32687ca1f71c5cc137cee735a2811f74a57
exp/ssh: simplify Stdin/out/errPipe methods

If a Pipe method is called, return the underlying
reader/writer from session.clientChan, bypassing the
io.Copy and io.Pipe harness.

StdoutPipe and StderrPipe now return an io.Reader not
an io.ReadCloser as SSH cannot signal the close of the
local reader to the remote process.

R=rsc, agl, gustav.paul, cw
CC=golang-dev
https://golang.org/cl/5493047
src/pkg/exp/ssh/session.go