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.
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
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
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
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
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
Issue 4080058: code review 4080058: rpc: make more tolerant of errors.
(Closed)
Created 14 years, 4 months ago by rog
Modified 14 years, 3 months ago
Reviewers:
Base URL:
Comments: 17