From a9ba4611e6680461cd8e166d46e7ab5a9e2498a0 Mon Sep 17 00:00:00 2001 From: gphper <570165887@qq.com> Date: Thu, 16 Jun 2022 20:09:22 +0800 Subject: [PATCH] fix: swoft-cloud/swoft/issues/1472 --- src/rpc-client/src/Concern/ServiceTrait.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rpc-client/src/Concern/ServiceTrait.php b/src/rpc-client/src/Concern/ServiceTrait.php index 66f43d27e..9e6b3a782 100644 --- a/src/rpc-client/src/Concern/ServiceTrait.php +++ b/src/rpc-client/src/Concern/ServiceTrait.php @@ -95,6 +95,7 @@ protected function __proxyCall(string $interfaceClass, string $methodName, array } catch (Throwable $e) { throw $e; } finally { // NOTICE: always release resource + $connection->reconnect(); $connection->release(); }