diff --git a/src/rpc-client/src/Concern/ServiceTrait.php b/src/rpc-client/src/Concern/ServiceTrait.php index 66f43d27e..b2bd41a9d 100644 --- a/src/rpc-client/src/Concern/ServiceTrait.php +++ b/src/rpc-client/src/Concern/ServiceTrait.php @@ -93,6 +93,7 @@ protected function __proxyCall(string $interfaceClass, string $methodName, array $result = $response->getResult(); } catch (Throwable $e) { + $connection->reconnect(); throw $e; } finally { // NOTICE: always release resource $connection->release();