]> Cypherpunks repositories - gostls13.git/commit
rpc: make more tolerant of errors.
authorRoger Peppe <rogpeppe@gmail.com>
Wed, 9 Feb 2011 18:57:59 +0000 (10:57 -0800)
committerRob Pike <r@golang.org>
Wed, 9 Feb 2011 18:57:59 +0000 (10:57 -0800)
commitd40ae949934344ccea67d52a6bf5c1cce8a35143
tree9893569529d1d20d27f20576fa218c7e61496f32
parentd916cca327ce6df869746a6e3ed5f574a8e308bd
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.

R=r
CC=golang-dev
https://golang.org/cl/4080058
src/pkg/rpc/client.go
src/pkg/rpc/server.go
src/pkg/rpc/server_test.go