This repository has been archived by the owner on Dec 31, 2023. It is now read-only.
Connections stay in CLOSE_WAIT state on using kms_v1.KeyManagementServiceClient #2
Labels
api: cloudkms
Issues related to the googleapis/python-kms API.
type: question
Request for information or clarification. Not an issue.
On using kms_v1.KeyManagementServiceClient in one of the scripts that I'm working on, I noticed the following in lsof output for the process
This happens irrespective of whether the KMS client is called in a loop or outside of a loop
If the script is being run as a scheduled job, then these CLOSE_WAIT sockets keep piling up eventually leading to a "Too many open files" error for the running process.
Is there a way to close these connections ?
NOTE -
Following packages are installed and being used :-
Modified sample from https://cloud.google.com/kms/docs/reference/libraries (Python example) that can be used to check this :-
The text was updated successfully, but these errors were encountered: