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

Issue 4080058: code review 4080058: rpc: make more tolerant of errors. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 4 months ago by rog
Modified:
14 years, 3 months ago
Reviewers:
CC:
r, golang-dev
Visibility:
Public.

Description

rpc: make more tolerant of errors. Add Error type to enable clients to distinguish between local and remote errors. Also return "connection shut down error" after the first error return rather than returning the same error each time.

Patch Set 1 #

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

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

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

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

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

Patch Set 7 : diff -r 76543d680825 https://go.googlecode.com/hg/ #

Total comments: 8

Patch Set 8 : diff -r 76543d680825 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 9 : diff -r 76543d680825 https://go.googlecode.com/hg/ #

Patch Set 10 : diff -r 76543d680825 https://go.googlecode.com/hg/ #

Patch Set 11 : diff -r 76543d680825 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 12 : diff -r 76543d680825 https://go.googlecode.com/hg/ #

Total comments: 5

Patch Set 13 : diff -r 76543d680825 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -120 lines) Patch
M src/pkg/rpc/client.go View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +37 lines, -18 lines 0 comments Download
M src/pkg/rpc/server.go View 1 2 3 4 5 6 7 8 9 4 chunks +57 lines, -36 lines 0 comments Download
M src/pkg/rpc/server_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +37 lines, -66 lines 0 comments Download

Messages

Total messages: 15
rog
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 4 months ago (2011-02-07 17:07:01 UTC) #1
rog
Hello r (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 4 months ago (2011-02-07 18:18:31 UTC) #2
r
generally good, although i see lots of things in the original code i'd like to ...
14 years, 4 months ago (2011-02-07 18:29:37 UTC) #3
rog
> generally good, although i see lots of things in the original code i'd > ...
14 years, 4 months ago (2011-02-07 18:49:30 UTC) #4
r
http://codereview.appspot.com/4080058/diff/5005/src/pkg/rpc/server.go File src/pkg/rpc/server.go (right): http://codereview.appspot.com/4080058/diff/5005/src/pkg/rpc/server.go#newcode449 src/pkg/rpc/server.go:449: service, ok = server.serviceMap[serviceMethod[0]] drop the ok and check ...
14 years, 4 months ago (2011-02-07 19:04:28 UTC) #5
rog
i wonder if gob and rpc should implement a Temporary method on their error types ...
14 years, 4 months ago (2011-02-07 19:13:06 UTC) #6
rog
PTAL. (slight change made at beginning of ServeCodec loop too) On 7 February 2011 19:04, ...
14 years, 4 months ago (2011-02-07 19:17:11 UTC) #7
rog
Hello r (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 4 months ago (2011-02-07 19:40:01 UTC) #8
r
one small but important detail i should have caught before http://codereview.appspot.com/4080058/diff/17001/src/pkg/rpc/client.go File src/pkg/rpc/client.go (right): http://codereview.appspot.com/4080058/diff/17001/src/pkg/rpc/client.go#newcode18 ...
14 years, 4 months ago (2011-02-07 20:34:25 UTC) #9
rog
PTAL http://codereview.appspot.com/4080058/diff/17001/src/pkg/rpc/client.go File src/pkg/rpc/client.go (right): http://codereview.appspot.com/4080058/diff/17001/src/pkg/rpc/client.go#newcode18 src/pkg/rpc/client.go:18: // Error represents an error that has been ...
14 years, 4 months ago (2011-02-08 13:27:29 UTC) #10
r
http://codereview.appspot.com/4080058/diff/19001/src/pkg/rpc/client.go File src/pkg/rpc/client.go (right): http://codereview.appspot.com/4080058/diff/19001/src/pkg/rpc/client.go#newcode18 src/pkg/rpc/client.go:18: // Error represents an error that has been returned ...
14 years, 4 months ago (2011-02-08 18:40:34 UTC) #11
rog
http://codereview.appspot.com/4080058/diff/19001/src/pkg/rpc/client.go File src/pkg/rpc/client.go (right): http://codereview.appspot.com/4080058/diff/19001/src/pkg/rpc/client.go#newcode18 src/pkg/rpc/client.go:18: // Error represents an error that has been returned ...
14 years, 4 months ago (2011-02-09 11:52:42 UTC) #12
r
LGTM
14 years, 4 months ago (2011-02-09 18:51:10 UTC) #13
rog
*** Abandoned ***
14 years, 3 months ago (2011-02-18 11:27:48 UTC) #14
rog
14 years, 3 months ago (2011-02-18 11:28:59 UTC) #15
strange that this wasn't marked as submitted, even though it was.

On 18 February 2011 11:27,  <rogpeppe@gmail.com> wrote:
> *** Abandoned ***
>
> http://codereview.appspot.com/4080058/
>
Sign in to reply to this message.

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