From: Dmitriy Vyukov Date: Thu, 26 Jan 2012 16:09:09 +0000 (+0400) Subject: net/rpc: log Call reply discard X-Git-Tag: weekly.2012-01-27~16 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eaa8b30d5a73a1406b7be12346dd67f013ac8221;p=gostls13.git 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 --- 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") } }