Closed roekatz closed 2 years ago
This would happen when retries are enabled.
WebSocketRpcClient.__aenter__ retries connecting indefinitely:
WebSocketRpcClient.__aenter__
return await retry(**self.retry_config)(self.__connect__)()
If __connect__ keeps failing - memory usage gradually increases (more noticeably when configuring fast retry strategy). This is due to __connect__ not cleaning resources on exceptions:
__connect__
RpcChannel
This was found while debugging: https://github.com/permitio/opal/issues/274
Fix merged
This would happen when retries are enabled.
WebSocketRpcClient.__aenter__
retries connecting indefinitely:If
__connect__
keeps failing - memory usage gradually increases (more noticeably when configuring fast retry strategy). This is due to__connect__
not cleaning resources on exceptions:RpcChannel
object is not closedThis was found while debugging: https://github.com/permitio/opal/issues/274