ing
This commit is contained in:
parent
cdcfb562d3
commit
8bc880be32
|
@ -2,6 +2,7 @@ package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
@ -298,6 +299,10 @@ func (c *client) rpcReader(readerDone chan<- error) {
|
||||||
for {
|
for {
|
||||||
crn, err := c.ch.GetCodec().NewResponseOrNotify(c.conn)
|
crn, err := c.ch.GetCodec().NewResponseOrNotify(c.conn)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
|
if err == io.ErrUnexpectedEOF || err == io.EOF {
|
||||||
|
logging.Logger().Info("Client: disconnected from server")
|
||||||
|
return
|
||||||
|
}
|
||||||
err = fmt.Errorf("Client: Cannot decode response or notify: [%s]", err)
|
err = fmt.Errorf("Client: Cannot decode response or notify: [%s]", err)
|
||||||
logging.Logger().Error(err.Error())
|
logging.Logger().Error(err.Error())
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue
Block a user