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

Issue 2137041: code review 2137041: netchan: use acknowledgements on export send. (Closed)

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

Description

netchan: use acknowledgements on export send.

Patch Set 1 #

Patch Set 2 : code review 2137041: netchan: use acknowledgements on export send. #

Total comments: 8

Patch Set 3 : code review 2137041: netchan: use acknowledgements on export send. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -61 lines) Patch
M src/pkg/netchan/common.go View 1 2 5 chunks +95 lines, -3 lines 0 comments Download
M src/pkg/netchan/export.go View 1 2 8 chunks +123 lines, -39 lines 0 comments Download
M src/pkg/netchan/import.go View 1 6 chunks +10 lines, -16 lines 0 comments Download
M src/pkg/netchan/netchan_test.go View 2 4 chunks +40 lines, -3 lines 0 comments Download

Messages

Total messages: 12
r
Hello golang-dev@googlegroups.com, I'd like you to review this change.
13 years, 8 months ago (2010-09-02 00:48:03 UTC) #1
r
That was not meant to be mailed. I did hg mail when I meant hg ...
13 years, 8 months ago (2010-09-02 00:49:42 UTC) #2
rsc1
(removing reviewers)
13 years, 8 months ago (2010-09-02 01:17:53 UTC) #3
r
Hello golang-dev@googlegroups.com, I'd like you to review this change.
13 years, 8 months ago (2010-09-02 05:36:30 UTC) #4
r
I did hg change and added rsc, but that act did not add rsc to ...
13 years, 8 months ago (2010-09-02 05:42:37 UTC) #5
rsc1
http://codereview.appspot.com/2137041/diff/5001/6001 File src/pkg/netchan/common.go (right): http://codereview.appspot.com/2137041/diff/5001/6001#newcode59 src/pkg/netchan/common.go:59: // a handy marshaling place for its data. d ...
13 years, 8 months ago (2010-09-02 15:49:09 UTC) #6
r
> http://codereview.appspot.com/2137041/diff/5001/6001#newcode120 I don't know how to deal with the > buffered channel length part ...
13 years, 8 months ago (2010-09-02 21:13:50 UTC) #7
r
Maybe we want both, a Drain that means 'empty everything' and a Sync that means ...
13 years, 8 months ago (2010-09-02 21:41:46 UTC) #8
r
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2010-09-03 01:43:53 UTC) #9
r
ping
13 years, 8 months ago (2010-09-04 12:32:21 UTC) #10
rsc1
LGTM
13 years, 8 months ago (2010-09-04 12:48:41 UTC) #11
r
13 years, 8 months ago (2010-09-04 13:42:01 UTC) #12
*** Submitted as http://code.google.com/p/go/source/detail?r=c7aa1f47c0e6 ***

netchan: use acknowledgements on export send.
Also add exporter.Drain() to wait for completion.
This makes it possible for an Exporter to fire off a message
and wait (by calling Drain) for the message to be received,
even if a client has yet to call to retrieve it.

Once this design is settled, I'll do the same for import send.

Testing strategies welcome.  I have some working stand-alone
tests.

R=rsc
CC=golang-dev
http://codereview.appspot.com/2137041

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

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