Description
Fix an issue where internal session and connector may not be released correctly when a client is collected by GC. The issue occurs mainly in the async programming and generally has no adverse effects.
New APIs
The caller can now explicitly close any client.
tencent.cloud.core.client.BaseClient.close(...)tencent.cloud.core.client.BaseClient.close_async(...)
This is an example:
from tencent.cloud.serverless import functions
client = functions.Client()
client.close()Upgrade
Upgrade to the latest version immediately to get bug fixes for your workload.
pip3 install --upgrade tencent-cloud-sdkChanged packages
- tencent-cloud-sdk-core
- tencent-cloud-sdk-serverless-function
- tencent-cloud-sdk-serverless-database