aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2012-01-26 20:09:09 +0400
committerDmitriy Vyukov <dvyukov@google.com>2012-01-26 20:09:09 +0400
commiteaa8b30d5a73a1406b7be12346dd67f013ac8221 (patch)
tree935b17cb3802c56eb707c2c1a28a97f82d63347b
parent290921bbb58514212f3d32a13e2de37cf4213b96 (diff)
downloadgo-eaa8b30d5a73a1406b7be12346dd67f013ac8221.tar.gz
go-eaa8b30d5a73a1406b7be12346dd67f013ac8221.zip
net/rpc: log Call reply discard
It means serious user error that can lead to hard to debug issues under load, log entry will not harm. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5574075
-rw-r--r--src/pkg/net/rpc/client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/net/rpc/client.go b/src/pkg/net/rpc/client.go
index 6fb414e089..abc1e59cd5 100644
--- a/src/pkg/net/rpc/client.go
+++ b/src/pkg/net/rpc/client.go
@@ -145,6 +145,7 @@ func (call *Call) done() {
default:
// We don't want to block here. It is the caller's responsibility to make
// sure the channel has enough buffer space. See comment in Go().
+ log.Println("rpc: discarding Call reply due to insufficient Done chan capacity")
}
}