Skip to content

Commit a0c848a

Browse files
ijustyceyangchun2
and
yangchun2
authored
fix #736, [掉线重连可能导致服务丢失](#736) (#737)
Co-authored-by: yangchun2 <[email protected]>
1 parent b2c297e commit a0c848a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/remote/rpc/rpc_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ func (r *RpcClient) reconnect(serverInfo ServerInfo, onRequestFail bool) {
413413
if onRequestFail && r.sendHealthCheck() {
414414
logger.Infof("%s server check success, currentServer is %+v", r.name, r.currentConnection.getServerInfo())
415415
atomic.StoreInt32((*int32)(&r.rpcClientStatus), (int32)(RUNNING))
416+
r.notifyConnectionChange(CONNECTED)
416417
return
417418
}
418419
var (

0 commit comments

Comments
 (0)