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

Issue 5433063: code review 5433063: exp/ssh: messages now contain remote channel's id inste... (Closed)

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

Description

exp/ssh: messages now contain remote channel's id instead of local id According to http://www.ietf.org/rfc/rfc4254.txt most channel messages contain the channel id of the recipient channel, not the sender id. This allows the recipient connection multiplexer to route the message to the correct channel. This changeset fixes several messages that incorrectly send the local channel id instead of the remote channel's id. While sessions were being created and closed in sequence channels in the channel pool were freed and reused on the server side of the connection at the same rate as was done on the client, so the channel local and remote channel ids always corresponded. As soon as I had concurrent sessions on the same clientConn the server started to complain of 'uknown channel id N' where N is the local channel id, which is actually paired with server channel id K.

Patch Set 1 #

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

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

Total comments: 7

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -20 lines) Patch
M src/pkg/exp/ssh/client.go View 1 2 3 7 chunks +7 lines, -11 lines 0 comments Download
M src/pkg/exp/ssh/session.go View 1 2 3 7 chunks +7 lines, -7 lines 0 comments Download
M src/pkg/exp/ssh/tcpip.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12
gpaul
Hello golang-dev@googlegroups.com, dave@cheney.net, rsc@golang.org, agl@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to ...
13 years, 3 months ago (2011-11-24 07:37:12 UTC) #1
dave_cheney.net
Hi Gustav, Thank you for submitting this patch, I think you have identified a serious ...
13 years, 3 months ago (2011-11-24 09:26:58 UTC) #2
gpaul
Hi Dave, Great, glad its not just me. Thanks for the quick responses, Gustav On ...
13 years, 3 months ago (2011-11-24 09:40:11 UTC) #3
dave_cheney.net
LGTM (with comments), leaving for rsc and agl. If you haven't already done so, you ...
13 years, 3 months ago (2011-11-24 15:18:27 UTC) #4
gpaul
Will do, I'm about to leave for home but I'll modify it first thing in ...
13 years, 3 months ago (2011-11-24 15:21:32 UTC) #5
agl1
On Thu, Nov 24, 2011 at 10:21 AM, Gustav Paul <gustav.paul@gmail.com> wrote: > Will do, ...
13 years, 3 months ago (2011-11-24 19:33:02 UTC) #6
gpaul
Hello golang-dev@googlegroups.com, dave@cheney.net, rsc@golang.org, agl@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 3 months ago (2011-11-25 08:55:46 UTC) #7
gpaul
I just signed the Google CLA. It said 'processing...' which I'm assuming really means 'done.'
13 years, 3 months ago (2011-11-25 09:00:29 UTC) #8
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=0a947e1cd2e2 *** exp/ssh: messages now contain remote channel's id instead of local ...
13 years, 3 months ago (2011-11-27 14:59:17 UTC) #9
rsc
It seems like there is a crucial apostrophe missing in "the peers id" unless this ...
13 years, 3 months ago (2011-11-28 15:24:30 UTC) #10
gpaul
Indeed! It refers to a single peer. What is the process for ammending the CL? ...
13 years, 3 months ago (2011-11-28 15:26:12 UTC) #11
bradfitz
13 years, 3 months ago (2011-11-28 15:31:34 UTC) #12
On Mon, Nov 28, 2011 at 10:26 AM, Gustav Paul <gustav.paul@gmail.com> wrote:

> Indeed! It refers to a single peer. What is the process for ammending the
> CL?


Sending another CL.

There's no "amending", per se.
Sign in to reply to this message.

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