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

Issue 50380043: code review 50380043: gosshnew/ssh: don't block Wait on copying stdin (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by axw
Modified:
10 years, 3 months ago
Reviewers:
hanwen-google
CC:
agl1, dave_cheney.net, jpsugar, golang-codereviews
Visibility:
Public.

Description

gosshnew/ssh: don't block Wait on copying stdin The new TestRunCommandStdin test case would block with the old code, as Wait blocks until the stdio copy goroutines complete. To resolve this, I have added a pipe between the user-specified stdin and the stdin channel. The write end of the pipe is closed prior to waiting for the copy goroutine's completion. Fixes #6088

Patch Set 1 #

Patch Set 2 : diff -r 4b93e466ea9d https://code.google.com/p/gosshnew #

Patch Set 3 : diff -r 4b93e466ea9d https://code.google.com/p/gosshnew #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -2 lines) Patch
M ssh/session.go View 1 3 chunks +18 lines, -2 lines 0 comments Download
M ssh/test/session_test.go View 1 2 chunks +48 lines, -0 lines 0 comments Download

Messages

Total messages: 5
axw
Hello agl@golang.org, dave@cheney.net, hanwen@google.com, jpsugar@google.com, golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/gosshnew
10 years, 3 months ago (2014-01-10 05:39:10 UTC) #1
hanwen-google
LGTM
10 years, 3 months ago (2014-01-10 08:32:36 UTC) #2
hanwen-google
*** Submitted as https://code.google.com/p/gosshnew/source/detail?r=f6edaf15031d *** gosshnew/ssh: don't block Wait on copying stdin The new TestRunCommandStdin ...
10 years, 3 months ago (2014-01-10 08:36:05 UTC) #3
hanwen-google
can you close this issue?
10 years, 3 months ago (2014-01-24 15:01:08 UTC) #4
hanwen-google
10 years, 3 months ago (2014-01-24 15:01:59 UTC) #5
actually, it already disappeared from my dashboard. Strange.
Sign in to reply to this message.

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