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

Issue 5132041: code review 5132041: exp/ssh: move common code to common.go (Closed)

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

Description

exp/ssh: move common code to common.go

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r f2dcf06a2380 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r f2dcf06a2380 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 41d5abd18c57 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 8 : diff -r 41d5abd18c57 https://go.googlecode.com/hg/ #

Patch Set 9 : diff -r 41d5abd18c57 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 41d5abd18c57 https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -100 lines) Patch
M src/pkg/exp/ssh/Makefile View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/exp/ssh/common.go View 1 2 3 4 5 6 7 8 9 3 chunks +33 lines, -0 lines 0 comments Download
M src/pkg/exp/ssh/messages.go View 1 2 3 4 5 6 7 3 chunks +70 lines, -0 lines 0 comments Download
M src/pkg/exp/ssh/server.go View 1 2 3 4 5 6 7 8 6 chunks +28 lines, -96 lines 1 comment Download
M src/pkg/exp/ssh/transport.go View 1 2 3 4 5 6 7 8 9 5 chunks +34 lines, -1 line 0 comments Download

Messages

Total messages: 5
dave_cheney.net
Hello agl@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 5 months ago (2011-09-24 08:21:51 UTC) #1
agl1
I suspect that decode can be cleaned up, otherwise looks good. http://codereview.appspot.com/5132041/diff/13001/src/pkg/exp/ssh/messages.go File src/pkg/exp/ssh/messages.go (right): ...
13 years, 5 months ago (2011-09-24 18:11:58 UTC) #2
dave_cheney.net
Thank you for your comments. PTAL http://codereview.appspot.com/5132041/diff/13001/src/pkg/exp/ssh/messages.go File src/pkg/exp/ssh/messages.go (right): http://codereview.appspot.com/5132041/diff/13001/src/pkg/exp/ssh/messages.go#newcode576 src/pkg/exp/ssh/messages.go:576: case msgDisconnect: Yes, ...
13 years, 5 months ago (2011-09-25 03:13:42 UTC) #3
agl1
*** Submitted as http://code.google.com/p/go/source/detail?r=3299d0ca626a *** exp/ssh: move common code to common.go R=agl CC=golang-dev http://codereview.appspot.com/5132041 Committer: ...
13 years, 5 months ago (2011-09-26 14:25:33 UTC) #4
dave_cheney.net
13 years, 5 months ago (2011-09-26 22:13:12 UTC) #5
Good call, arguably the panic was a left over debugging feature. I'll add a unit
test to verify that all message types are digestible. 

Sent from my iPhone

On 27/09/2011, at 0:25, agl@golang.org wrote:

> *** Submitted as
> http://code.google.com/p/go/source/detail?r=3299d0ca626a ***
> 
> exp/ssh: move common code to common.go
> 
> R=agl
> CC=golang-dev
> http://codereview.appspot.com/5132041
> 
> Committer: Adam Langley <agl@golang.org>
> 
> 
> 
> http://codereview.appspot.com/5132041/diff/18001/src/pkg/exp/ssh/server.go
> File src/pkg/exp/ssh/server.go (right):
> 
>
http://codereview.appspot.com/5132041/diff/18001/src/pkg/exp/ssh/server.go#ne...
> src/pkg/exp/ssh/server.go:641: panic(fmt.Sprintf("unknown message: %#v",
> msg))
> I'm going to revert this line before landing rather than add another
> round trip to the whole code review. I think this makes it far too easy
> to panic the server.
> 
> For debugging it's certainly useful to print something, but that can be
> done locally when developing and I think println("unknown message:\n" +
> hex.Dump(msg)) is clearer in any case.
> 
> You're welcome to bring it up in future reviews if you differ on this
> point.
> 
> 
> Cheers
> 
> http://codereview.appspot.com/5132041/
Sign in to reply to this message.

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