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