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

Issue 6479056: code review 6479056: go.crypto/ssh: assorted close related fixes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by dfc
Modified:
11 years, 7 months ago
Reviewers:
CC:
agl1, kardia, gpaul, albert.strasheim, golang-dev
Visibility:
Public.

Description

go.crypto/ssh: assorted close related fixes Fixes issue 3810. Fixes chanWriter Write after close behaviour bug. Fixes serverChan writePacket after close bug. Addresses final comments by agl on 6405064, plus various cleanups.

Patch Set 1 #

Patch Set 2 : code review 6479056: go.crypto/ssh: assorted close related fixes #

Patch Set 3 : diff -r 87f3ce85c32a https://code.google.com/p/go.crypto #

Patch Set 4 : diff -r 1670f3fc0b9d https://code.google.com/p/go.crypto #

Patch Set 5 : diff -r 1670f3fc0b9d https://code.google.com/p/go.crypto #

Patch Set 6 : diff -r 1670f3fc0b9d https://code.google.com/p/go.crypto #

Total comments: 4

Patch Set 7 : diff -r 1670f3fc0b9d https://code.google.com/p/go.crypto #

Patch Set 8 : diff -r 1670f3fc0b9d https://code.google.com/p/go.crypto #

Patch Set 9 : diff -r 1670f3fc0b9d https://code.google.com/p/go.crypto #

Total comments: 8

Patch Set 10 : diff -r 1670f3fc0b9d https://code.google.com/p/go.crypto #

Patch Set 11 : diff -r 1670f3fc0b9d https://code.google.com/p/go.crypto #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -60 lines) Patch
M ssh/channel.go View 1 2 3 4 5 6 7 8 9 12 chunks +45 lines, -41 lines 0 comments Download
M ssh/client.go View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M ssh/server.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ssh/session_test.go View 1 2 3 4 5 6 7 3 chunks +1 line, -9 lines 0 comments Download
M ssh/transport.go View 1 2 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 13
dfc
Hello agl@golang.org, kardianos@gmail.com, gustav.paul@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.crypto
11 years, 7 months ago (2012-09-01 01:14:19 UTC) #1
kardia
LGTM. I lightly tested the server code and it gave me no error. http://codereview.appspot.com/6479056/diff/7006/ssh/channel.go File ...
11 years, 7 months ago (2012-09-01 03:20:41 UTC) #2
dfc
Thanks you for your comments. http://codereview.appspot.com/6479056/diff/7006/ssh/channel.go File ssh/channel.go (right): http://codereview.appspot.com/6479056/diff/7006/ssh/channel.go#newcode360 ssh/channel.go:360: func (c *serverChan) dead() ...
11 years, 7 months ago (2012-09-01 03:45:02 UTC) #3
dfc
+fullung
11 years, 7 months ago (2012-09-01 03:45:23 UTC) #4
dfc
Hello agl@golang.org, kardianos@gmail.com, gustav.paul@gmail.com, fullung@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 7 months ago (2012-09-01 09:42:01 UTC) #5
dfc
Hello agl@golang.org, kardianos@gmail.com, gustav.paul@gmail.com, fullung@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 7 months ago (2012-09-02 01:13:23 UTC) #6
dfc
ping. I'd be grateful if gpaul or agl could give this a once over.
11 years, 7 months ago (2012-09-03 23:42:50 UTC) #7
gpaul
LGTM. Just some questions inline. http://codereview.appspot.com/6479056/diff/10006/ssh/channel.go File ssh/channel.go (right): http://codereview.appspot.com/6479056/diff/10006/ssh/channel.go#newcode135 ssh/channel.go:135: return atomic.CompareAndSwapUint32(&c.isClosed, 0, 1) ...
11 years, 7 months ago (2012-09-04 08:13:30 UTC) #8
dfc
Thank you for your comments, PTAL. http://codereview.appspot.com/6479056/diff/10006/ssh/channel.go File ssh/channel.go (right): http://codereview.appspot.com/6479056/diff/10006/ssh/channel.go#newcode135 ssh/channel.go:135: return atomic.CompareAndSwapUint32(&c.isClosed, 0, ...
11 years, 7 months ago (2012-09-04 08:25:33 UTC) #9
dfc
Hello agl@golang.org, kardianos@gmail.com, gustav.paul@gmail.com, fullung@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 7 months ago (2012-09-04 08:25:53 UTC) #10
gpaul
On 2012/09/04 08:25:53, dfc wrote: > Hello mailto:agl@golang.org, mailto:kardianos@gmail.com, mailto:gustav.paul@gmail.com, > mailto:fullung@gmail.com (cc: mailto:golang-dev@googlegroups.com), > ...
11 years, 7 months ago (2012-09-04 12:01:54 UTC) #11
agl1
LGTM
11 years, 7 months ago (2012-09-04 13:31:34 UTC) #12
dfc
11 years, 7 months ago (2012-09-04 23:47:08 UTC) #13
*** Submitted as
http://code.google.com/p/go/source/detail?r=d7d342670efa&repo=crypto ***

go.crypto/ssh: assorted close related fixes

Fixes issue 3810.

Fixes chanWriter Write after close behaviour bug.

Fixes serverChan writePacket after close bug.

Addresses final comments by agl on 6405064, plus various cleanups.

R=agl, kardianos, gustav.paul, fullung
CC=golang-dev
http://codereview.appspot.com/6479056
Sign in to reply to this message.

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