Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9)

Issue 5493047: code review 5493047: exp/ssh: simplify Stdin/out/errPipe methods (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by dave
Modified:
13 years, 3 months ago
Reviewers:
CC:
rsc, agl1, gpaul, cw, golang-dev
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : diff -r f624d7f32d22 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f624d7f32d22 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r f624d7f32d22 https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -31 lines) Patch
M src/pkg/exp/ssh/session.go View 1 2 10 chunks +28 lines, -31 lines 1 comment Download

Messages

Total messages: 4
dave_cheney.net
Hello rsc@golang.org, agl@golang.org, gustav.paul@gmail.com, cw@f00f.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to ...
13 years, 3 months ago (2011-12-15 11:19:58 UTC) #1
agl1
LGTM. Will leave a while to see if anyone else has comments. http://codereview.appspot.com/5493047/diff/5001/src/pkg/exp/ssh/session.go File src/pkg/exp/ssh/session.go ...
13 years, 3 months ago (2011-12-15 15:48:44 UTC) #2
cw
LGTM (working here)
13 years, 3 months ago (2011-12-15 19:58:24 UTC) #3
agl1
13 years, 3 months ago (2011-12-15 21:50:46 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=9ffee5b34ea0 ***

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
http://codereview.appspot.com/5493047

Committer: Adam Langley <agl@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b