Merge "fix memory leak of Connections"

This commit is contained in:
Zuul 2023-08-09 10:53:23 +00:00 committed by Gerrit Code Review
commit 14ee05f264

View File

@ -577,6 +577,7 @@ class Connection(
self.config.set_auth_cache() self.config.set_auth_cache()
if self.__pool_executor: if self.__pool_executor:
self.__pool_executor.shutdown() self.__pool_executor.shutdown()
atexit.unregister(self.close)
def set_global_request_id(self, global_request_id): def set_global_request_id(self, global_request_id):
self._global_request_id = global_request_id self._global_request_id = global_request_id