]> Cypherpunks repositories - gostls13.git/commitdiff
net/rpc: silence read error on closing connection
authorRuss Cox <rsc@golang.org>
Fri, 24 Feb 2012 03:45:44 +0000 (22:45 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 24 Feb 2012 03:45:44 +0000 (22:45 -0500)
Fixes #3113.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5698056

src/pkg/net/rpc/client.go

index 34f9ae317e28822925c6d94ee1279daa4849754e..f7abf21f157f9089211ee92922a614e53b24b0a6 100644 (file)
@@ -140,7 +140,7 @@ func (client *Client) input() {
        }
        client.mutex.Unlock()
        client.sending.Unlock()
-       if err != io.EOF || !closing {
+       if err != io.EOF && !closing {
                log.Println("rpc: client protocol error:", err)
        }
 }