Merge "fix memory leak of Connections"
This commit is contained in:
commit
14ee05f264
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user