From 9b7a22dcc94a6db981ec26616052bda8035c0e82 Mon Sep 17 00:00:00 2001 From: "zcq_rambo@outlook.com" Date: Sun, 24 Apr 2022 16:24:51 +0800 Subject: [PATCH] fix: maybe auth failed when session reconnect --- .../java/com/xiaomi/infra/pegasus/rpc/async/ReplicaSession.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/xiaomi/infra/pegasus/rpc/async/ReplicaSession.java b/src/main/java/com/xiaomi/infra/pegasus/rpc/async/ReplicaSession.java index 66ffaeaf..85a3e65e 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/rpc/async/ReplicaSession.java +++ b/src/main/java/com/xiaomi/infra/pegasus/rpc/async/ReplicaSession.java @@ -245,6 +245,7 @@ private void markSessionConnected(Channel activeChannel) { void markSessionDisconnect() { VolatileFields cache = fields; + authSucceed = false; synchronized (pendingSend) { if (cache.state != ConnState.DISCONNECTED) { // NOTICE: