From f8066ca9e42c7db4556bbe7205a4a95916d5a61c Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 23 Nov 2017 17:53:03 +0900 Subject: [PATCH] ing --- client/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/client.go b/client/client.go index 8be96f8..041b1d5 100644 --- a/client/client.go +++ b/client/client.go @@ -278,6 +278,11 @@ func (c *client) rpcWriter(stopChan <-chan struct{}, writerDone chan<- error) { cs.Done() } if nil != err { + if err == io.ErrUnexpectedEOF || err == io.EOF { + logging.Logger().Info("Client: disconnected from server") + return + } + err = fmt.Errorf("Client: Cannot send request to wire: [%s]", err) logging.Logger().Error(err.Error()) continue