From eaa8b30d5a73a1406b7be12346dd67f013ac8221 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Thu, 26 Jan 2012 20:09:09 +0400 Subject: [PATCH] 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 --- src/pkg/net/rpc/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pkg/net/rpc/client.go b/src/pkg/net/rpc/client.go index 6fb414e089c..abc1e59cd51 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") } }