extra fixes
Signed-off-by: jsign <jsign.uy@gmail.com>
This commit is contained in:
parent
dbd51ff8e7
commit
54f2e6ea3a
@ -385,7 +385,7 @@ func (fn *rpcFunc) handleRpcCall(args []reflect.Value) (results []reflect.Value)
|
||||
|
||||
retVal = func() reflect.Value { return val.Elem() }
|
||||
}
|
||||
retry := resp.Error != nil && resp.Error.Code == 0 && fn.retry
|
||||
retry := resp.Error != nil && resp.Error.Code == 2 && fn.retry
|
||||
if !retry {
|
||||
break
|
||||
}
|
||||
|
@ -429,6 +429,7 @@ func (c *wsConn) closeInFlight() {
|
||||
ID: id,
|
||||
Error: &respError{
|
||||
Message: "handler: websocket connection closed",
|
||||
Code: 2,
|
||||
},
|
||||
}
|
||||
|
||||
@ -438,6 +439,8 @@ func (c *wsConn) closeInFlight() {
|
||||
}
|
||||
c.handlingLk.Unlock()
|
||||
}
|
||||
c.inflight = map[int64]clientRequest{}
|
||||
c.handling = map[int64]context.CancelFunc{}
|
||||
}
|
||||
|
||||
func (c *wsConn) closeChans() {
|
||||
@ -519,6 +522,7 @@ func (c *wsConn) handleWsConn(ctx context.Context) {
|
||||
ID: *req.req.ID,
|
||||
Error: &respError{
|
||||
Message: "handler: websocket connection closed",
|
||||
Code: 2,
|
||||
},
|
||||
}
|
||||
c.writeLk.Unlock()
|
||||
|
Loading…
Reference in New Issue
Block a user