1
0
mirror of https://github.com/golang/go synced 2024-11-22 10:44:41 -07:00

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
This commit is contained in:
Dmitriy Vyukov 2012-01-26 20:09:09 +04:00
parent 290921bbb5
commit eaa8b30d5a

View File

@ -145,6 +145,7 @@ func (call *Call) done() {
default: default:
// We don't want to block here. It is the caller's responsibility to make // 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(). // sure the channel has enough buffer space. See comment in Go().
log.Println("rpc: discarding Call reply due to insufficient Done chan capacity")
} }
} }