This commit is contained in:
crusader 2017-11-23 17:53:03 +09:00
parent 8bc880be32
commit f8066ca9e4

View File

@ -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