ing
This commit is contained in:
parent
5dafb388b1
commit
66c4770b07
|
@ -10,6 +10,7 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"git.loafle.net/commons_go/logging"
|
||||
"git.loafle.net/commons_go/rpc/protocol"
|
||||
)
|
||||
|
||||
|
@ -262,7 +263,8 @@ func (c *client) rpcWriter(stopChan <-chan struct{}, writerDone chan<- error) {
|
|||
|
||||
if n > 10*c.ch.GetPendingRequests() {
|
||||
err = fmt.Errorf("Client: The server didn't return %d responses yet. Closing server connection in order to prevent client resource leaks", n)
|
||||
return
|
||||
logging.Logger().Error(err.Error())
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -273,7 +275,8 @@ func (c *client) rpcWriter(stopChan <-chan struct{}, writerDone chan<- error) {
|
|||
}
|
||||
if nil != err {
|
||||
err = fmt.Errorf("Client: Cannot send request to wire: [%s]", err)
|
||||
return
|
||||
logging.Logger().Error(err.Error())
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user